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

Delete a sandbox

Stops a sandbox if it is running and deletes it with its disks. Nothing of it is kept. Its luna’s next request of it makes a new one.

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

The tenant, by its name.

typestringrequired

The type of the luna that has the sandbox.

namestringrequired

The sandbox's name, as its luna's code named it.

Query parameters
keystringrequired

The luna's key: JSON, or the value of the one field of a type keyed by one.

Responses
200

Deleted.

object
404

The luna has no sandbox of that name.

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/sandboxes/string/string?key=string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{}

Was this page helpful?