---
title: "Cancel an order"
method: DELETE
path: "/v0/orders/{id}"
tags: ["Orders"]
---

# Cancel an order

`DELETE /v0/orders/{id}`

## Path parameters

- `id` string, required

## Response `200`

Order cancelled successfully

- MarketApiCancelOrderResponse
  - `object` 'pending', required

## Other responses

- `400` — Order already cancelled
- `404` — Order not found
- `500` — Internal server error

## Changes

- **2026-05-15** `b819ba3108b3` — 9 breaking, 3 info
  - removed the required property `details` from the response with the `400` status
  - removed the required property `details` from the response with the `404` status
  - removed the required property `details` from the response with the `500` status
  - removed the required property `message` from the response with the `400` status
  - …8 more
- **2026-02-11** `73ad90aa5d19` — 1 warning
  - changed the pattern of the `path` request parameter `id` from `"ordr"_[0-9a-zA-Z]+` to `ordr_[0-9a-zA-Z_-]{1,21}`

[Change history](https://skmtc.dev/sfcompute/apis/san-francisco-compute-documentation/changes/v0/orders/:id/delete.md)

---

[API](https://skmtc.dev/sfcompute/apis/san-francisco-compute-documentation.md) · [All operations](https://skmtc.dev/sfcompute/apis/san-francisco-compute-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sfcompute/san-francisco-compute-documentation/revisions/93dd7661e9bb/schema)
