Deliverables
Delete a deliverable
Destructive. Permanently removes the node and every node beneath it. This is not the archive operation and it cannot be undone. Prefer PATCH /deliverable/{id} with { "isArchived": true }, which cascades the same way and is reversible.
Before the rows go, BuildingSwell relinks what pointed at them so you do not silently lose time or QC history:
- Work sessions and QC entries on any deleted node are moved onto the nearest surviving ancestor.
- Dependency links touching any deleted node are removed with it.
- When there is no surviving ancestor, which is the case when you delete a root order, the call is rejected with
400if the subtree has work sessions or QC entries. Archive it instead.