> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: "Remove custom domain"
description: "Delete a custom domain from Cloudflare and the database."
api: "DELETE /api/v0/domains/{projectId}/{domainId}"
gridGap: 30
---

<Aside full>
  <RequestExample>
    ```bash title="cURL" lines=false
    curl -X DELETE "https://api.example.com/api/v0/domains/<projectId>/<domainId>"
    ```
  </RequestExample>
</Aside>

<OpenAPIEndpoint {...{"method":"delete","path":"/api/v0/domains/{projectId}/{domainId}","summary":"Remove custom domain","description":"Delete a custom domain from Cloudflare and the database.","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project ULID.","schema":{"type":"string"}},{"name":"domainId","in":"path","required":true,"description":"Domain ULID.","schema":{"type":"string"}}],"responses":[{"status":"200","description":"","schema":{"type":"object","required":["deleted"],"properties":{"deleted":{"type":"boolean"}}},"examples":[]},{"status":"404","description":"","schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}},"examples":[]},{"status":"default","description":"","examples":[]}],"security":[],"servers":[]}} />
