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

Delete a tenant

Deletes a tenant with its lunas, their data, its versions, keys and secrets. This cannot be undone. Deleting a tenant you added to an environment needs tenants:write. Deleting an environment’s default tenant deletes the environment, and needs environments:delete. A project’s production environment is deleted with its project.

DELETE/_luna/tenants/{tenant}
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:tenants:write
or
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:delete
Path parameters
tenantstringrequired

The tenant, by its full name.

Responses
200

The tenant is deleted, or still being deleted.

deletedbooleanrequired

Whether everything is gone. false means the delete carries on in the background.

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/tenants/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "deleted": true
}

Was this page helpful?