domains
Delete domain
Delete a custom domain from your workspace.
Address the domain by its id or by its name. Names are unique per workspace, so api.acme.com is enough.
Unkey stops serving the domain. Later requests fail with a certificate error. The DNS records at your provider stay in place.
Required Permissions
Your root key must have one of the following permissions:
- environment.*.delete_domain (to delete domains in any environment)
- environment.<environment_id>.delete_domain (to delete domains in a specific environment)
post/v2/domains.deleteDomain
Request body
Example request
{
"domain": "api.acme.com"
}Response
Successfully deleted the domain.
Example response
{
"meta": {
"requestId": "req_123"
}
}