Skip to main content

Data Transformations - Delete Rule

Enterprise Only This API is available exclusively in Countly Enterprise.

Endpoint

/i/data-manager/transformation/delete

Overview

Deletes a transformation rule by ID.

Authentication

Countly API supports three authentication methods:

  1. API key query parameter: api_key=YOUR_API_KEY
  2. Auth token query parameter: auth_token=YOUR_AUTH_TOKEN
  3. Auth token header: countly-token: YOUR_AUTH_TOKEN

Permissions

Requires data_manager_transformations Delete permission.

Request Parameters

ParameterTypeRequiredDescription
app_idStringYesTarget app ID.
idStringYesTransformation document ID.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Parameter Semantics

FieldExpected valuesBehavior
idValid transformation document IDThe endpoint deletes only the matching rule for the current app_id.

Response

Success Response

"Success"

Response Fields

FieldTypeDescription
(root value)StringSuccess when deletion completes.

Error Responses

  • 500
{
"result": "Error"
}

Behavior/Processing

Behavior Modes

ModeTriggerProcessing PathResponse Shape
DeleteAlwaysRemoves transformation by _id + app, invalidates cache.Raw root string: "Success"

Impact on Other Data

  • Deletes from countly.datamanager_transforms.
  • Invalidates transformation cache for app.

Audit & System Logs

ActionTriggerPayload
dm-transformation-deleteAfter successful delete{ id: "rule_id" }

Database Collections

CollectionUsed forData touched by this endpoint
countly.datamanager_transformsTransformation rule storageRemoves one rule document matching _id and app.
countly.systemlogsAudit trailWrites dm-transformation-delete with deleted rule ID.

Examples

/i/data-manager/transformation/delete?
app_id=64f5c0d8f4f7ac0012ab3456&
id=67b860e39f2d3e0012ab9c44

Operational Considerations

  • Deletion removes only rule definition; already transformed historical data is not rolled back by this endpoint.

Limitations

  • Invalid IDs or DB failures are returned as generic 500 Error.


Last Updated

2026-02-16