## Delete domain `client.pages.projects.domains.delete(stringprojectName, stringdomainName, DomainDeleteParamsparams, RequestOptionsoptions?): DomainDeleteResponse | null` **delete** `/accounts/{account_id}/pages/projects/{project_name}/domains/{domain_name}` Delete a Pages project's domain. ### Parameters - `projectName: string` Name of the project. - `domainName: string` The domain name. - `params: DomainDeleteParams` - `account_id: string` Identifier. ### Returns - `DomainDeleteResponse = unknown` ### Example ```node import Cloudflare from 'cloudflare'; const client = new Cloudflare({ apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted }); const domain = await client.pages.projects.domains.delete( 'this-is-my-project-01', 'this-is-my-domain-01.com', { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, ); console.log(domain); ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": {}, "success": true } ```