import Nuntly from '@nuntly/sdk';const client = new Nuntly({ apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted});const domain = await client.domains.delete('dns_01kabn43yqyxn2bx4ve84mczd3');console.log(domain.id);
{ "data": { "id": "<string>" }}
Domains
Delete Domain
Remove a domain from the organization. Cannot be deleted if it has active sending or receiving.
DELETE
/
domains
/
{id}
JavaScript
import Nuntly from '@nuntly/sdk';const client = new Nuntly({ apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted});const domain = await client.domains.delete('dns_01kabn43yqyxn2bx4ve84mczd3');console.log(domain.id);