---
title: "Delete Order"
description: "Use DELETE /orders/{order} to delete an order. The operation documented here is Order.delete."
canonical: https://docs.ordering.co/api-reference/guides/delete-order/
---

# Delete Order

> **API operation:** [Open the endpoint in Scalar](https://docs.ordering.co/api-reference/#tag/orders/DELETE/orders/{order})

Use `DELETE /orders/{order}` to delete an order. The operation documented here is `Order.delete`.

> **Parameter:** `{order}` is the integer order ID in the route.

The documented schema requires administrator authentication. Confirm that your account has permission before sending this destructive request. Deletion is destructive and can close logistics, assignment, driver, group, and review state. Confirm the order and dependent workflows before use.

```javascript
const response = await ordering.orders(orderId).delete();
```

This SDK syntax is historical. Confirm the package and version before using it.

## OpenAPI reference

**Operation:** `DELETE /orders/{order}`

**Path parameters**

| Name    | Type    | Required | Description |
| ------- | ------- | -------- | ----------- |
| `order` | integer | Yes      | —           |

**Responses**

| Code | Description                           |
| ---- | ------------------------------------- |
| 200  | OK (Envelope)                         |
| 400  | Bad Request (ErrorResponse)           |
| 401  | Unauthorized                          |
| 404  | Not Found                             |
| 429  | Too Many Requests (ErrorResponse)     |
| 500  | Internal Server Error (ErrorResponse) |
| 503  | Service Unavailable (ErrorResponse)   |

[Open this operation in the API reference](https://docs.ordering.co/api-reference/#tag/orders/DELETE/orders/{order})
