Skip to contentSkip to navigationSkip to topbar

Delete an audience 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/AudienceSnapshots/{audienceSnapshotId}

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

Initiates deletion of an audience snapshot and its associated profile data.

Processed asynchronously: returns 202 Accepted with an AudienceOperation resource for polling via AudienceOperations.


Request

delete-audience-snapshot-request page anchor

Path parameters

delete-audience-snapshot-path-parameters page anchor
Property nameTypeRequiredDescription
audienceSnapshotIdstring
required

Unique identifier for the audience snapshot following TTID format. Format: aud_snapshot_{uuidv7-encoded}

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

202400401403404429500

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

SchemaExample
Property nameTypeRequiredDescriptionChild properties
operationIdstring
read-only

Optional

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

Example: aud_operation_01h9d8r0vte3hz8tykdj329t7rPattern: ^aud_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)
  • CANCELED: Operation was canceled before it finished
Example: RUNNINGPossible values:
PENDINGRUNNINGCOMPLETEDFAILEDCANCELED

statusUrlstring<uri-reference>
read-only

Optional

URL to poll for operation status

Example: /preview/AudienceOperations/aud_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> or null
read-only

Optional

Timestamp when the operation completed. Null until the operation reaches a terminal state.

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

payloadobject or null
read-only

Optional

Operation-specific metadata and progress information for an Audience operation.


resultUrlstring<uri-reference> or null
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. Null otherwise.

Example: /preview/AudienceSnapshots/aud_snapshot_01h9d8r0vte3hz8tykdj329t7rMax length: 500

resultobject or null
read-only

Optional

Operation-specific output data. Only present when status is COMPLETED. Fields present depend on operationType (the others are null):

  • SNAPSHOT: audienceSnapshotId, audienceId (AUDIENCE-sourced only), profileCount, partitionCount, updatedAt
  • SNAPSHOT_DELETE: audienceSnapshotId, audienceId (AUDIENCE-sourced only), updatedAt
  • UPDATE: audienceId, updatedAt
  • DELETE: audienceId, updatedAt

errorobject or null
read-only

Optional

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

Delete an audience snapshotLink to code sample: Delete an audience snapshot
1
curl -X DELETE "https://audiences.twilio.com/preview/AudienceSnapshots/aud_snapshot_01h9d8r0vte3hz8tykdj329t7r" \
2
-u $TWILIO_API_KEY:$TWILIO_API_SECRET

Response

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