Submit a bulk zone delete request
POST https://{{host}}/config-dns/v2/zones/delete-requests
Submits a request to delete one or more new Zones asynchronously. The request body contains a JSON array. Each element in the array is the name of a zone to be deleted. Before deleting a zone from the Edge DNS system, the API makes sure Akamai servers aren't receiving DNS requests for that zone. It also checks that the zone isn't currently delegated to Akamai's name servers. An offline task deletes the new zones. The result of this operation is a requestId
, which you can use to check the task's status and view its results once it completes.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
bypassSafetyChecks | string | (Optional) If true , disables the delegation checks and deletes the zones as soon as possible. It's false by default. | |
accountSwitchKey | string | (Optional) For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys. |
Request Body
{"comment"=>"Removing rivers and streams.", "zones"=>["river.com", "stream.com"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"expirationDate":"2021-01-03T12:00:00Z","requestId":"e585a640-0849-4b87-8dd9-91afdaf8851c"}