Delete an environment
Deletes an environment with its tenants and all their data. This cannot be undone. Production is deleted with its project.
DELETE
/_luna/orgs/{org}/projects/{project}/environments/{env}Authorization
AuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
Scopes:
environments:deletePath parameters
orgstringrequiredThe organisation, by its slug.
projectstringrequiredThe project, by its slug.
envstringrequiredThe environment, by its name or its id.
Responses
200
What was deleted.
deletedbooleanrequiredWhether everything is gone. false means some tenants are still being deleted.
tenantsstring[]requiredThe tenants that were deleted with it.
default
The request failed. The status says how and error.message says why.
errorErrorDetailrequiredShow propertiesHide properties
codestring | nullA code for programs to branch on, when the error has one.
messagestringrequiredWhat went wrong, in a sentence a person can read.