Zone Delete
Please note that in our new cloud panel, Zones are named as CDN Resources. (Zone ID = CDN Resource ID)
Allows you to delete a zone.
Parameters
Return Values
PHP Example
<?php $curl_post_data = array( 'user_key' =>'Your User Key', 'user_secret' =>'Your User Secret', 'zone_id' =>'Zone Id'); $request_body =json_encode($curl_post_data); $ch = curl_init('https://api.medianova.com/v1/zone/delete'); curl_setopt($ch, CURLOPT_POSTFIELDS, $request_body); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'Content-Length: ' . strlen($request_body)) ); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); $response = curl_exec($ch); curl_close($ch); $decoded = json_decode($response); var_dump($decoded); ?>
Example Output
{ "status": true }