---
title: "Remove Domain from Workspace"
method: DELETE
path: "/domains/{domain_id}"
tags: ["Domains"]
---

# Remove Domain from Workspace

`DELETE /domains/{domain_id}`

## Request

- Base URL: `https://api.rebrandly.com/v1`
- URL: `https://api.rebrandly.com/v1/domains/{domain_id}`
- Auth: API key in header `apikey`

Unshare a domain from the workspace. The domain will no longer be
available for creating links, but existing links are not affected.

## Path parameters

- `domain_id` string, required

## Headers

- `Workspace` string
- `apikey` string, required

## Response `200`

Domain removed from workspace

- object

## Other responses

- `403`: Forbidden - Insufficient permissions
- `404`: Resource not found

---

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