> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete an order

> Delete an order

### Path parameters

<ParamField path="tenant_id" type="string" required>
  Tenant identifier
</ParamField>

<ParamField path="order_id" type="string (uuid)" required>
  Order UUID
</ParamField>

### Response

`object`

<ResponseField name="deleted" type="boolean" required>
  Whether the deletion was successful
</ResponseField>

<ResponseField name="id" type="string (uuid)" required>
  The ID of the deleted order
</ResponseField>

### Status codes

| Code  | Meaning                                     |
| ----- | ------------------------------------------- |
| `200` | Order deleted                               |
| `401` | Unauthorized                                |
| `404` | Order not found                             |
| `409` | Order cannot be deleted (already fulfilled) |

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url 'https://api.sync.stateset.com/v1/tenants/{tenant_id}/orders/{order_id}' \
    --header 'x-stateset-api-key: YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "deleted": false,
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  }
  ```
</ResponseExample>
