4 Zones API: How to delete a zone

This is a series of articles dedicated to demonstrating how to get acquainted with Openprovider DNS Zones API methods. If you want to go the beginning of this guide, please navigate to the article "Zones API: How to create a zone".

To get more information about our API in general, please use our documentation portal as your reference.

This is a fourth article that will show how to delete a certain zone.

Zone deletion is a simple operation which deletes an existing DNS zone and all records in it. Openprovider servers won't respond to queries for the zone or any of the records after you do this, and you cannot recover the deleted zone.

The name of the zone is the only thing that is required to perform this operation.

Entering Geo Fence iconUse endpoint path below. Base URL is determined by both the target environment and API version.
GET {base_url}/dns/zones/{name}

REQUEST EXAMPLE

curl -X DELETE \
'https://api.openprovider.eu/v1beta/dns/zones/examplezonename.com' \
-H 'Authorization: ,Bearer 2831a37fb8*******90b5aac822' \

RESPONSE EXAMPLE

{
"code": 0,
"data": {
"success": true
},
"desc": ""
}

 

Was this article helpful?
Additional questions? Submit a request