import AIInbx from 'aiinbx';const client = new AIInbx({ apiKey: process.env['AI_INBX_API_KEY'], // This is the default and can be omitted});const domain = await client.domains.delete('domainId');console.log(domain.success);
Copy
{ "success": true}
Domains
Delete domain
Delete a domain by ID from the organization
DELETE
/
domains
/
{domainId}
JavaScript
Copy
import AIInbx from 'aiinbx';const client = new AIInbx({ apiKey: process.env['AI_INBX_API_KEY'], // This is the default and can be omitted});const domain = await client.domains.delete('domainId');console.log(domain.success);