Delete a sequence
Permanently deletes the sequence, its steps, and the enrollment records of everyone who went through it. This cannot be undone. Templates the steps used are not deleted.
Refused with 409 while any enrollment in the sequence is pending, active or paused. Disabling the sequence does not help, because disabling pauses enrollments. Finish them first (POST /v2/sequencer/enrollments/bulk/finish), or move them to another sequence (POST /v2/sequencer/enrollments/bulk/move).
This DELETE takes a JSON body carrying user_id, who must be the author, the team owner or a team admin. A retry after a success returns 404. Counts toward the Sequencer writes rate limit.
Clearing a sequence before you delete it
- Find who is still in it:
GET /v2/sequencer/enrollments?sequence=SEQ_ID&state=active, then the same withstate=pausedandstate=pending. - Finish them with Finish enrollments in bulk, or move them to another sequence with Move enrollments to another sequence.
- Delete the sequence.
Example
ThisDELETE takes a JSON body carrying user_id. Some HTTP clients drop the body of a DELETE by
default, which gets a 400.
user_id must be the author, the team owner or a team admin. A retry after a successful delete gets a
404.Authorizations
Team-scoped API key generated in the Salesfinity dashboard under Settings → Connections → API & Webhooks. A missing or invalid key returns HTTP 403.
Path Parameters
24-character sequence id.
Body
The team member this call acts as. Must be an active member of the team the API key belongs to.
"507f1f77bcf86cd799439011"
Response
Deleted.
Always true.