This API call removes a site from the network.
Caution
To delete a Site, use the Update Sites endpoint and set
isDeleted
totrue
const Adzerk = require('@adzerk/management-sdk');
const apiKey = process.env.ADZERK_API_KEY;
async function deleteSite() {
let specifications = await Adzerk.fetchSpecifications();
let client = await Adzerk.buildClient({apiKey, specifications});
let site = await client.run("site", "update", {id: 1234, isDeleted: true});
console.log(site);
}
deleteSite();
require "adzerk"
def delete_site()
client = Adzerk::Client.new(ENV["ADZERK_API_KEY"])
id = 12345
pp client.sites.delete(id)
end
delete_site()