You can call this operation to delete an accelerated domain.

When you call this operation, follow these rules:
  • Delete an accelerated domain with caution to avoid this domain name being inaccessible after deletion. We recommend that you restore the A record at your Domain Name Service (DNS) provider before you delete an accelerated domain.
  • After the DeleteCdnDomain operation is successfully called, all information about the accelerated domain will be removed. If you only want to disable an accelerated domain, call the StopCdnDomain operation.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteDcdnDomain

The operation that you want to perform. Set the value to DeleteDcdnDomain.

DomainName String Yes example.com

The name of the accelerated domain to be deleted. You can specify only one domain name.

ResourceGroupId String No 123

The ID of the resource group.

Response parameters

Parameter Type Example Description
RequestId String 0AEDAF20-4DDF-4165-8750-47FF9C1929C9

The ID of the request.

Examples

Sample requests

http://http://dcdn.aliyuncs.com?Action=DeletDcdnDomain
&DomainName=example.com
&<Common request parameters>

Sample success responses

XML format

<DeleteDcdnDomainResponse>
	  <RequestId>0AEDAF20-4DDF-4165-8750-47FF9C1929C9</RequestId>
</DeleteDcdnDomainResponse>

JSON format

{
	"RequestId":"0AEDAF20-4DDF-4165-8750-47FF9C1929C9"
}

Error codes

HTTP status code Error code Error message Description
400 InvalidDomainName.Malformed The specified DomainName is invalid. The error message returned because the specified DomainName parameter is invalid.

For a list of error codes, visit the API Error Center.