Syntext DOCS
Get Started
API Remove Domain
DELETE/v1/projects/{projectId}/domains/{domainId}

Remove Domain

Remove a custom domain from a project. The documentation will no longer be accessible via this domain.

Path Parameters

The project ID (e.g., prj_abc123).

The domain ID (e.g., dom_xyz789).

Response

Returns 204 No Content on success.

Example

curl -X DELETE https://api.syntext.dev/v1/projects/prj_abc123/domains/dom_xyz789 \
-H "Authorization: Bearer stx_abc12345_..."
import { Syntext } from '@syntext/sdk'

const client = new Syntext('stx_abc12345_...')
await client.domains.remove('prj_abc123', 'dom_xyz789')
from syntext import Syntext

client = Syntext("stx_abc12345_...")
client.domains.remove("prj_abc123", "dom_xyz789")

Response

HTTP/1.1 204 No Content

After removing a domain, visitors to that domain will see an error page. The documentation will still be accessible via the default *.syntext.dev URL.

Error Responses

404 Not Found

Returned when the domain or project does not exist.

{
  "error": {
    "code": "not_found",
    "message": "Domain or project does not exist"
  }
}
Assistant
Responses are generated using AI and may contain mistakes.

Ask me anything about the documentation.

ESC