---
title: "Remove an Order Status"
method: DELETE
path: "/order-statuses/{status}"
tags: ["Order Statuses"]
---

# Remove an Order Status

`DELETE /order-statuses/{status}`

## Request

- Base URL: `https://api.smartroutes.io/v2`
- URL: `https://api.smartroutes.io/v2/order-statuses/{status}`
- Auth: none declared

Remove a custom status from your organisation's catalogue.

This only removes the status from your organisation's list. Orders already carrying the status keep it — their status is not rewritten, and `GET /orders` will still return it.

Removing a SmartRoutes default returns `400`. A name your organisation has not added returns `404`.

## Path parameters

- `status` string, required

## Response `200`

The status is no longer available to your organisation.

- object
  - `deleted` object
    - `status` string

## Other responses

- `400`: Invalid input. The request body failed validation.
- `403`: Forbidden. Returned for rate-limit exhaustion (`name = FORBIDDEN`, with `details.retry_after_seconds` and `Retry-After` header) and permission gate failures (`name = PERMISSION`). Inspect `name` to disambiguate. Send `x-sr-api-features: rate-limit-429` to receive `429 RATE_LIMIT_EXCEEDED` for the rate-limit case instead, leaving `403` to mean permission failures only — see [API Features](#section/Getting-started/API-Features).
- `404`: The requested resource was not found.
- `429`: Rate limit exceeded (`name = RATE_LIMIT_EXCEEDED`). **Only returned to callers that opt in** with the `x-sr-api-features: rate-limit-429` request header; without it the same condition returns `403` with `name = FORBIDDEN` and an otherwise identical body. See [API Features](#section/Getting-started/API-Features).
- `500`: An unexpected server error occurred. The body carries only `name` and `description`: internal details are never returned.

---

[API](https://skmtc.dev/smartroutes/apis/smartroutes-api.md) · [All operations](https://skmtc.dev/smartroutes/apis/smartroutes-api/llms.txt) · [OpenAPI document](https://skmtc.dev/smartroutes/apis/smartroutes-api/revisions/a7ea507afac7?raw)
