> ## Documentation Index
> Fetch the complete documentation index at: https://omni.fireflo.au/llms.txt
> Use this file to discover all available pages before exploring further.

# DELETE /v1/routes/{route_id}

> Remove a route.

Removes a route. Messages already under way keep their steps. If it was the default, messages that name no route go back to the built-in default.

<Note>Needs the `routes:write` scope.</Note>

## Path parameters

| Field | Type | Required | Notes |
| :- | :- | :- | :- |
| `route_id` | string | Yes | The route's id. |

## Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE https://api.fireflo.au/v1/routes/b1d6e0a4-2f3c-4a5b-8e9d-7c6f5a4b3e21 \
    -H "Authorization: Bearer $OMNI_API_KEY"
  ```

  ```python Python theme={null}
  import os

  import requests

  response = requests.delete(
      "https://api.fireflo.au/v1/routes/b1d6e0a4-2f3c-4a5b-8e9d-7c6f5a4b3e21",
      headers={"Authorization": f"Bearer {os.environ['OMNI_API_KEY']}"},
  )
  print(response.status_code)
  ```

  ```javascript Node theme={null}
  const response = await fetch("https://api.fireflo.au/v1/routes/b1d6e0a4-2f3c-4a5b-8e9d-7c6f5a4b3e21", {
    method: "DELETE",
    headers: {
      Authorization: `Bearer ${process.env.OMNI_API_KEY}`,
    },
  });
  console.log(response.status);
  ```
</CodeGroup>

## Response

`204 No Content` — no body.

## Errors

Every refusal is `{"error": {"code", "message", "field"}}`; `field` is there when one input is at fault.

| Status | Error code | When |
| :- | :- | :- |
| 404 | `not_found` | No route has that id on this account. |
| 403 | `scope_missing` | The key doesn't have the `routes:write` scope. |

Any request can also be refused for its key, its account or its rate (`key_required`, `invalid_key`, `account_suspended`, `plan_excludes_api`, `address_not_allowed`, `rate_limited`); see [the overview](/api-reference/overview).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.