Datamart APIs
Delete Datamart
Delete a datamart from your organization. This action cannot be undone.
DELETE
Permanently delete a datamart from your organization. This will remove the datamart and all its associated configurations.
Use this endpoint for all new integrations. Uses REST-ful DELETE method with query parameters.
This action is irreversible. Once a datamart is deleted, all its data configurations and associated embed configurations will be permanently removed.
Endpoint Formats
- New Endpoint (Recommended)
- Legacy Endpoint (Deprecated Soon)
Authentication
This endpoint requires a service token in the Authorization header. Service tokens differ from data app API keys and provide organization-level permissions. To access your service token:- In Settings page, navigate to the Service Tokens section.
- Click the “Generate Token” button to create a new service token if you don’t have one already.
Headers
Bearer token for API authentication. Use your service token.
Query Parameters
The name of the datamart to delete. Must match an existing datamart name in your organization.
Response
The name of the deleted datamart for confirmation.
Error field, null when successful.
Examples
Legacy Endpoint Examples
The following examples use the deprecated POST endpoint. These are provided for reference only. Please use the DELETE endpoint examples above for all new integrations.
Error Codes
Invalid request body - Check that datamartName is provided and valid
Unexpected failure - Internal server error occurred
HTTP Status Code Summary
| Status Code | Description |
|---|---|
| 200 | OK - Datamart deleted successfully |
| 400 | Bad Request - Invalid request parameters or datamart not found |
| 401 | Unauthorized - Invalid or expired API token |
| 500 | Internal Server Error - Unexpected server error |
Possible Errors
| Code | Message | HTTP Status |
|---|---|---|
| INVALID_REQUEST_BODY | Datamart not found | 400 |
| INTERNAL_SERVER_ERROR | Unexpected failure | 500 |
Best Practices
Check Dependencies
Before deleting, verify no embed configurations depend on this datamart
Backup Data
Consider exporting important configurations before deletion
Test Environment
Test deletion process in a non-production environment first
Documentation
Document the deletion for audit and compliance purposes
Quick Start Guide
Check dependencies
Before deleting, ensure no embed configurations are using this datamart. Use the List Embeds API to verify.
Next Steps
Create Datamart
Create a new datamart to replace the deleted one
List Datamarts
View all remaining datamarts in your organization
Embed a Pre-built Dashboard/Metric
Create new embed configurations for your remaining datamarts
Guest Token API
Generate tokens for your updated configurations

