Delete a file
Deletes one file from a bucket of one luna.
DELETE
/_luna/tenants/{tenant}/files/{type}/{bucket}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:
data:writePath parameters
tenantstringrequiredThe tenant, by its name.
typestringrequiredThe luna type, by its name.
bucketstringrequiredThe bucket, by its name.
Query parameters
keystringrequiredThe luna's key as JSON, such as {"id":"a"}. For a type keyed by one field, the value of that field alone also works.
pathstringrequiredThe file's path in the bucket.
Responses
200
Whether there was a file to delete.
deletedbooleanrequiredFalse when it was already gone.
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.