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

# Cancel order

`DELETE /preview/v2/orders/{id}`

> ⚠️ This endpoint is in [public preview](/preview/roadmap).

Request cancellation of an order. This is asynchronous — poll `GET /v2/orders/{id}` to confirm the status has changed to cancelled.

## Path parameters

- `id` string, required

## Response `204`

Order cancellation initiated.

## Other responses

- `401` — Unauthorized.
- `404` — Order not found.
- `422` — Order cannot be cancelled.
- `500` — Internal server error.

---

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