DeleteApiDomainService

Update time: 2026-08-14 11:28:05

Applicable Products

Media Acceleration VoD,Media Acceleration Live Broadcast,Content Acceleration,Dynamic Web Acceleration

API Description

Delete one of the added accelerator domains. Cannot be enabled after deletion, only the accelerated domain name can be re-created.

  • API URL: https://api.atomile.com/api/domain/*
  • Method: DELETE
  • Limit Description: Please be cautious. (Recommended to restore the domain name A record to the domain name resolution service provider before deleting the domain name) to avoid the domain name being inaccessible after the deletion. · After the call is successful, all related configurations of the accelerated domain name will be deleted. For the only need to suspend the use of the accelerated domain name, it is recommended to use the [CancelApiDomainService] interface.

Call frequency

Single user trigger frequency: 300/5min

Request parameter(s)

Path Params

NameDescription
*domainString
Domain name or Domain ID

Response parameter(s)

Response Header

NameDescription
x-cnc-request-idString
Uniquely identified id for querying tasks per request (for all API)

Body Params

NameDescription
codeString
Error code, which appears when HTTPStatus is not 202, represents the error type of the current request call
messageString
Response information, success when successful

Error code

Error code(code)Description(message)HTTP statusSemantic
NoSuchDomainThe specified domain name does not exist.400The specified domain name does not exist.
ForbiddenDomain name is being deleted403Domain name is being deleted
WRONG_OPERATORThe author cannot operate the domain name400The author cannot operate the domain name
DELETEING_DOMAINDomain name has been deleted400Domain name has been deleted
CAN_NOT_DELETE_HANG_UP_DOMAINDomain name is being added for review400Domain name is being added for review
PARAM_INVALIDParameter {0} null or illegal400Parameter {0} null or illegal

Example

XML
JSON
XML
Request example
Copy Copy success
#!/bin/bash
username="example_username"
apiKey="example_apiKey"
date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"`
password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64`
curl -i --url "https://{@apiDomain}/api/domain/123344" \
-X "DELETE" \
-u "$username:$password" \
-H "Date: $date" \
-H "Accept: application/xml"
Response example
Copy Copy success
HTTP/1.1 202 Accepted
Date: Fri, 17 May 2017 06:33:26 GMT
Content-Type: application/xml;charset=utf-8
x-cnc-request-id:c54cbbb4-19fe-407a-930c-3988b62ed2fd
<?xml version="1.0" encoding="UTF-8"?>
<response>
  <message>success</message>
</response>