Delete Domain
Remove a custom domain
DELETE
/domains/{domain_id}Requires
Bearer authenticationRemove a custom domain from your organization. This will also revoke the SSL certificate.
Path Parameters
domain_idstringrequiredThe unique identifier of the domain to delete.
DELETE
/domains/{domain_id}curl -X DELETE "https://api.vastal.agency/v1/domains/dom_abc123" \ -H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch( 'https://api.vastal.agency/v1/domains/dom_abc123', { method: 'DELETE', headers: { 'Authorization': 'Bearer YOUR_API_KEY' } } );
200Success
{ "success": true, "message": "Domain deleted successfully" }