This API call removes an existing zone.
Caution
To delete a Zone, use the Update Zone endpoint and set
isDeleted
totrue
const Adzerk = require('@adzerk/management-sdk');
const apiKey = process.env.ADZERK_API_KEY;
async function deleteZone() {
let specifications = await Adzerk.fetchSpecifications();
let client = await Adzerk.buildClient({apiKey, specifications});
let zone = await client.run("zone", "update", {id: 98765, isDeleted: true});
console.log(zone);
}
deleteZone();
require "adzerk"
def delete_zone()
client = Adzerk::Client.new(ENV["ADZERK_API_KEY"])
id = 12345
pp client.zones.delete(id)
end
delete_zone()