# Disconnect a custom domain

> Source: /api-reference/partner/explorer/custom-domains/disconnect
> Releases the domain. Pages served on it fall back to their default Journey URL.
> Full spec: https://docs.journey.com/openapi/partner.v1.json

## `DELETE /v1/partner/custom-domains/{externalId}`

```json
{
  "description": "Releases the domain. Pages served on it fall back to their default Journey URL.",
  "operationId": "customDomainsPartner_disconnect",
  "parameters": [
    {
      "description": "External custom domain id.",
      "in": "path",
      "name": "externalId",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "The domain after disconnection."
    },
    "400": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "Request validation failed. `errors` lists the offending fields."
    },
    "401": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "No usable credential. Send `Authorization: Bearer <jwt>` or `X-API-Key: jny_...`."
    },
    "403": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "The credential authenticated but lacks the scopes in `x-required-scopes`, or the resource belongs to another organization."
    },
    "404": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "No such resource, or it is outside the organization the credential resolves to."
    }
  },
  "security": [
    {
      "partnerBearer": []
    },
    {
      "partnerApiKey": []
    }
  ],
  "summary": "Disconnect a custom domain",
  "tags": [
    "partner/custom-domains"
  ],
  "x-required-scopes": [
    [
      "partner:custom-domains:manage"
    ]
  ]
}
```