Skip to content
Luna
Esc
↑↓navigate↵open⌘Jpreview

Remove a domain

Removes a domain from a tenant. Its requests stop reaching the tenant within seconds, and its certificate is deleted.

DELETE/_luna/domains/{tenant}/{name}
Authorization
AuthorizationBearer token · headerrequired

An account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.

Scopes:environments:write
Path parameters
tenantstringrequired

The tenant, by its full name.

namestringrequired

The domain.

Responses
200

The domain is gone.

okbooleanrequired

Always true.

default

The request failed. The status says how and error.message says why.

errorErrorDetailrequired
Show properties
codestring | null

A code for programs to branch on, when the error has one.

messagestringrequired

What went wrong, in a sentence a person can read.

Try it
Server
Authorization
Parameters
Request
curl -X DELETE 'https://luna.example.com/_luna/domains/string/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "ok": true
}

Was this page helpful?