---
title: "Detach a domain from a revision"
method: DELETE
path: "/v2/revisions/{revision}/domains/{hostname}"
tags: ["revisions", "domains"]
---

# Detach a domain from a revision

`DELETE /v2/revisions/{revision}/domains/{hostname}`

Remove this revision's binding for the given hostname. Hostnames are unique, so the binding is identified by hostname alone — the timeline/context is inferred. Pass the same hostname (including any `{variable}` template syntax) that was used to attach it.

Passing a **default**-alias template detaches the revision from the app's default managed domain instead of removing a custom binding: the default production host rolls back to the next most recently attached revision, and the default preview host for this revision goes offline.

Detaching one hostname leaves the revision's other hostnames untouched, even when they share a parent domain. Other revisions and app-level custom-domain assignments are not affected. Returns `404` if no binding exists.

## Path parameters

- `revision` string, required
- `hostname` string, required

## Response `204`

OK

---

[API](https://skmtc.net/deno/apis/deploy.md) · [All operations](https://skmtc.net/deno/apis/deploy/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deno/deploy/versions/5a56038d108e/schema)
