delete_draft_order
Delete a draft order permanently. Only OPEN or INVOICE_SENT drafts are eligible – completed drafts are orders and cannot be deleted. This action is irreversible and returns the deleted GID.
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). |