deploy.project-domain.deleteRemove a project’s wildcard domain, its records and its certificate
One per project, named by the X-EWS-Project header (its slug); without it, the Default project. The domain (apps.example.com) must be in one of the organization’s hosted zones, delegated to the platform’s nameservers: the platform writes an ALIAS <app slug>.<domain> for every app of the project (and for each new app, or one moved into it), never over a record that is already there, and issues one certificate for *.<domain> over DNS-01 within a minute or two; it is renewed 30 days before it expires. An app moved out of the project loses its name there. An app behind a load balancer is not served at the domain. Previews are not. Setting a different domain removes the old one’s records first. Two projects cannot share a domain, or use one under the other.
Request syntax
DELETE /deploy/api/project-domainResponse
200 with `data`: the domain removed. 404 when the project has none.
A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.
Fields of data
projectAlwaysstring
The projectdomainAlwaysstring
The domain removedrecordsRemovedAlwaysnumber
ALIAS records the domain had made, removed
Checked against the handlers: every route test validates their answers against this schema.
Errors
- 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
- 401No credentials, or an access key that is unknown, revoked or expired.
- 403The caller's policies do not allow deploy:DeleteProjectDomain on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
- 404The resource does not exist in your organization.
Examples
The required parameters only, with example values. Replace id and the other placeholders with your own.
dcloud deploy project-domain deletecurl -X DELETE "https://console.platform.deutschecloud.app/deploy/api/project-domain" \
-H "Authorization: EWS-ACCESS-KEY $ACCESS_KEY"import { DcloudClient } from '@dcloud/sdk';
const client = new DcloudClient();
const result = await client.deploy.projectDomain.delete();from dcloud import Client
client = Client()
result = client.deploy.project_domain.delete()Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_deploy_project-domain_delete.