---
title: "Cancel all of a user's orders in a specific market"
method: DELETE
path: "/orders/all/{slug}"
tags: ["Trading"]
---

# Cancel all of a user's orders in a specific market

`DELETE /orders/all/{slug}`

## Response `200`

All orders successfully cancelled

- CancelAllOrdersResponseDto
  - `message` string, required — Confirmation message for cancelling all orders
  - `canceled` string[] — Array of successfully cancelled order IDs
  - `failed` CancelOrderFailure[] — Array of orders that failed to cancel with reasons
    - `orderId` string, required — Order ID that failed to cancel
    - `reason` 'ORDER_NOT_FOUND' | 'UNKNOWN_ERROR', required — Error code indicating the reason for failure
    - `message` string, required — User-friendly error message

## Other responses

- `207` — Partial success - some orders cancelled, some failed
- `400` — Invalid market slug or no orders could be cancelled
- `401` — User not authenticated
- `425` — Cancellation is temporarily blocked because trading is disabled by maintenance mode
- `500` — Server error during cancellation

---

[API](https://skmtc.net/limitless-labs-group/apis/limitless-exchange-api.md) · [All operations](https://skmtc.net/limitless-labs-group/apis/limitless-exchange-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/limitless-labs-group/limitless-exchange-api/revisions/f60847044e0d/schema)
