Skip to contentSkip to navigationSkip to topbar

Delete a cohort snapshot


(new)

Beta

Twilio Cohorts is currently available as a Private Beta product and the information contained in this document is subject to change. You acknowledge and agree that your use of Twilio Cohorts is subject to the terms of the Services in Private Beta(link takes you to an external page). This means that some features are not yet implemented and others may be changed before the product is declared as Generally Available. Private Beta products are not covered by the Twilio Support Terms or Twilio Service Level Agreement.

(warning)

Not a HIPAA Eligible Service or PCI Compliant

Twilio Cohorts is not a HIPAA Eligible Service or PCI compliant and should not be enabled in workflows that are subject to HIPAA or PCI.

DELETE/preview/CohortSnapshots/{cohortSnapshotId}

Base url: https://audiences.twilio.com (base url)

Initiates deletion of a cohort snapshot and its associated profile data.

Processed asynchronously: returns 202 Accepted with an Operation resource for polling via CohortOperations.


Request

delete-cohort-snapshot-request page anchor

Authentication

authentication page anchor
Property nameTypeRequiredDescription
cohortSnapshotIdstring
required

The cohortSnapshotId identifier


202401403404429500

Accepted - Operation accepted for asynchronous processing. Poll the CohortOperations endpoint to check status.

SchemaExample
Property nameTypeRequiredDescriptionChild properties
operationIdstring
read-only

Optional

Unique identifier for the operation following TTID format. Format: cmp_operation_{uuidv7-encoded}

Example: cmp_operation_01h9d8r0vte3hz8tykdj329t7rPattern: ^cmp_operation_[a-zA-Z0-9]{26}$Max length: 100

statusenum<string>
read-only

Optional

Current status of the operation.

  • PENDING: Operation is waiting to be processed
  • RUNNING: Operation is in progress
  • COMPLETED: Operation finished successfully
  • FAILED: Operation failed (check error field)
  • CANCELLED: Operation was cancelled by the user
Example: RUNNINGPossible values:
PENDINGRUNNINGCOMPLETEDFAILEDCANCELLED

statusUrlstring<uri-reference>
read-only

Optional

URL to poll for operation status

Example: /preview/CohortOperations/cmp_operation_01h9d8r0vte3hz8tykdj329t7rMax length: 500

createdAtstring<date-time>
read-only

Optional

Timestamp when the operation was created

Example: 2026-01-15T10:00:00Z

completedAtstring<date-time>
read-only

Optional

Timestamp when the operation completed (present for terminal states)

Example: 2026-01-15T10:03:45Z

payloadobject
read-only

Optional

Operation-specific metadata and progress information for a Cohort operation.


resultUrlstring<uri-reference>
read-only

Optional

URL of the resulting resource. Present when status is COMPLETED and the operation produced or modified a resource.

Not present for deletion operations (DELETE, SNAPSHOT_DELETE) since the resource no longer exists after completion.

Example: /preview/CohortSnapshots/cmp_cohortsnapshot_01h9d8r0vte3hz8tykdj329t7rMax length: 500

resultobject
read-only

Optional

Operation-specific output data. Only present when status is COMPLETED. Fields present depend on operationType:

  • SNAPSHOT: cohortSnapshotId, cohortId (COHORT-sourced only), profileCount, partitionCount, updatedAt
  • SNAPSHOT_DELETE: cohortSnapshotId, cohortId (COHORT-sourced only)
  • UPDATE: cohortId, updatedAt
  • DELETE: cohortId

errorobject
read-only

Optional

Detailed error information following RFC 9457 Problem Details standard. Only present when status is FAILED.

Delete a cohort snapshotLink to code sample: Delete a cohort snapshot
1
curl -X DELETE "https://audiences.twilio.com/preview/CohortSnapshots/cohortSnapshotId" \
2
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN

Response

Note about this response
1
{
2
"operationId": "cmp_operation_01h9d8r0vte3hz8tykdj329t7r",
3
"status": "PENDING",
4
"statusUrl": "/preview/CohortOperations/cmp_operation_01h9d8r0vte3hz8tykdj329t7r",
5
"createdAt": "2026-01-15T10:00:00Z"
6
}