---
title: "Delete a sequence (?force=true, ?dryRun=true)"
method: DELETE
path: "/sequences/{sequenceId}"
tags: ["Sequences"]
---

# Delete a sequence (?force=true, ?dryRun=true)

`DELETE /sequences/{sequenceId}`

Soft-deletes one sequence. Without `?force=true`, a sequence with a
sent footprint is guarded — `409 SEQUENCE_HAS_SENT_MESSAGES`;
`?force=true` (`forceDeletionOfSentMessages`) extends the delete to
already-sent messages. `?dryRun=true` reports the would-be effect
(`{ dryRun, sequenceId, status, force }`) with no writes. Replaces
the deprecated `POST /sequences/{sequenceId}/delete` spelling.

## Query parameters

- `force` boolean
- `dryRun` boolean

## Response `200`

{ sequenceId, deleted: true } — or the dryRun report.

## Other responses

- `404` — SEQUENCE_NOT_FOUND.
- `409` — SEQUENCE_HAS_SENT_MESSAGES.

---

[API](https://skmtc.net/origami/apis/origami-agent-api.md) · [All operations](https://skmtc.net/origami/apis/origami-agent-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/origami/origami-agent-api/revisions/8083ad7fe081/schema)
