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

Delete a project

Deletes a project with its environments, its tenants and all their data. This cannot be undone. An API key needs to reach the whole organisation.

DELETE/_luna/orgs/{org}/projects/{project}
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:projects:delete
Path parameters
orgstringrequired

The organisation, by its slug.

projectstringrequired

The project, by its slug.

Responses
200

What was deleted.

deletedbooleanrequired

Whether everything is gone. false means some tenants are still being deleted.

tenantsstring[]required

The tenants that were deleted with it.

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

Was this page helpful?