---
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.
- `403` — Forbidden.
- `404` — Order not found.
- `422` — Order cannot be cancelled.
- `500` — Internal server error.

---

[API](https://skmtc.dev/sfcompute/apis/sfc-api.md) · [All operations](https://skmtc.dev/sfcompute/apis/sfc-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sfcompute/sfc-api/revisions/f3ff1539c0d9/schema)
