delete_draft_order
Permanently delete a draft order in OPEN or INVOICE_SENT status. Completed drafts are real orders and cannot be deleted.
Instructions
Permanently delete a draft order. Only OPEN/INVOICE_SENT drafts can be deleted — completed drafts are real orders and orders cannot be deleted (cancel them instead). Irreversible. Returns the deleted GID, or a no-op message if the GID didn't match anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | GID of a draft order to delete. Permanent. Cannot delete drafts that have been completed (those are real orders — orders cannot be deleted, only cancelled or archived). |