Delete a crew that ended, with its work.
Only a crew that ended (completed, failed or canceled): a live one answers 409 crew_live; cancel it first with POST /crews/{id}/cancel.
DELETE/api/v1/crews/{id}
Scopescrewsapprove
An ended crew is refused (409 crew_busy) while an agent is still stopping on its machine, a preview of it runs or a pull request Koidog opened for it is still open: one details entry per reason, each with its code (agent_stopping, preview_running, pull_request_open) and the next actions that resolve it. GET /deletions/check?kind=crew&id= answers the same without deleting. Removes its tasks, agents, runs and their logs, approvals, steering messages, previews, its pull request records, its artifacts and run bundles (on this disk and in the file store) and its branches in the server's git mirror. Kept: its timeline events (they still name the crew's id), its VM and cost records, and every branch and pull request on GitHub. Answers what was removed; deleting it again answers the same record with alreadyDeleted: true; an id that never existed is 404. Destructive, so a key needs approve as well as crews. The timeline records the key ID, action and outcome.
Path parameters.
idstringrequired
The crew's id.
Headers.
Idempotency-Keystring
Retry the same request with the same key. Retry rules.
Response.
200 OK · JSON object