---
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
- `500` — Server error during cancellation

## Changes

- **2026-03-26** `7583da44d16b` — 2 info
  - the endpoint scheme security `ApiKeyAuth` was added to the API
  - the endpoint scheme security `bearer` was removed from the API

[Change history](https://skmtc.dev/limitless-labs-group/apis/limitless-exchange-api/changes/orders/all/:slug/delete.md)

---

[API](https://skmtc.dev/limitless-labs-group/apis/limitless-exchange-api.md) · [All operations](https://skmtc.dev/limitless-labs-group/apis/limitless-exchange-api/llms.txt) · [OpenAPI document](https://skmtc.dev/limitless-labs-group/apis/limitless-exchange-api/revisions/20e1fd747a5c?raw)
