Calls the DeleteDomain operation to delete a domain name based on input parameters.

  • Given the unique nature of a HiChina domain name, you are not allowed to delete the HiChina domain name by calling the Alibaba Cloud DNS API.
  • If the system prompts that a domain name does not exist, it is an unregistered domain name, it does not exist under the account, or its format in the request parameters is incorrect.

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 DeleteDomain

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

DomainName String Yes example.com

The domain name.

AccessKeyId String No your_accesskey_id

The AccessKey ID provided to you by Alibaba Cloud.

Lang String No en

The language type.

Response parameters

Parameter Type Example Description
DomainName String example.com

The domain name.

RequestId String 536E9CAD-DB30-4647-AC87-AA5CC38C5382

The ID of the request.

Examples

Sample requests


http(s)://[Endpoint]/?Action=DeleteDomain
&DomainName=example.com
&<Common request parameters>

Sample success responses

XML format

<DeleteDomainResponse>
      <RequestId>536E9CAD-DB30-4647-AC87-AA5CC38C5382</RequestId>
      <DomainName>example.com</DomainName>
</DeleteDomainResponse>

JSON format

{
	"RequestId":"536E9CAD-DB30-4647-AC87-AA5CC38C5382",
	"DomainName":"example.com"
}

Error codes

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