---
title: "Unbind any route from a function"
method: DELETE
path: "/functions/{id}/route"
tags: ["Functions"]
---

# Unbind any route from a function

`DELETE /functions/{id}/route`

Deactivates every active endpoint bound to this function. The
function stays deployed but stops receiving inbound mail. Safe
to call when no route is currently bound (no-op).

## Response `200`

Route unbound

- object
  - `success` true, required
  - `data` object, required
    - `unrouted` true, required

## Other responses

- `401` — Invalid or missing API key
- `404` — Resource not found

---

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