Deletes a specified accelerated domain.

Before you call this operation, pay attention to the following notes:
  • Delete an accelerated domain with caution. Make sure that the domain name is accessible after you call the operation to delete the accelerated domain. We recommend that you restore the A record in the system of your Domain Name Service (DNS) provider before you delete an accelerated domain.
  • After the DeleteDcdnDomain operation is called as expected, all the information about the accelerated domain is removed. If you need only to disable an accelerated domain, call the StopDcdnDomain 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://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

HttpCode Error code Error message Description
400 InvalidDomainName.Malformed The specified DomainName is invalid. The error message returned because the domain name format is invalid.

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