> ## 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

**tenant\_id** `string` *required*

Tenant identifier

**order\_id** `string (uuid)` *required*

Order UUID

### Response

`object`

**deleted** `boolean` *required*

Whether the deletion was successful

**id** `string (uuid)` *required*

The ID of the deleted order

### Status codes

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

```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: $STATESET_SYNC_API_KEY"
```

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.