Skip to main content
Version: 25.03

Delete flow

Enterprise

This endpoint is part of Countly Enterprise. To get access, contact sales or compare versions. Existing customers can reach the support portal with questions.

Endpoint​

/i/flows/delete

Overview​

Deletes a flow schema and all related flow data.

Authentication​

Pass api_key or auth_token as a query parameter, or send countly-token as a header. See Authentication.

Permissions​

Requires flows Create permission for this endpoint.

Request Parameters​

ParameterTypeRequiredDescription
app_idStringYesTarget app ID.
_idStringYesFlow ID to delete.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Examples​

/i/flows/delete?
app_id=64f5c0d8f4f7ac0012ab3456&
_id=64f5c0d8f4f7ac0012ab3456_67bd31c92e7f0b0012ab4567

Response​

Success Response​

{
"result": "Success"
}

Response Fields​

FieldTypeDescription
resultStringSuccess when schema and data are deleted.

Error Responses​

  • 400
{
"result": "Flow not found"
}
  • 400
{
"result": "Data base error. Pleas check logs"
}

Behavior​

  • Verifies schema exists by _id + app_id.
  • Deletes flow_data rows with _id prefix <flow_id>_.
  • Deletes schema row by _id.
  • Logs flows_deleted on success.
Implementation details

Database Collections

CollectionUsed forData touched by this endpoint
countly.flow_schemasEndpoint data sourceStores endpoint-related records this endpoint reads or modifies.
countly.flow_dataEndpoint data sourceStores endpoint-related records this endpoint reads or modifies.
countly.systemlogsAudit trailContains system action records used by this endpoint for audit output or audit writes.