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

Delete a secret

Removes a secret from a tenant. This deploys a new version with the same code, so that running lunas stop seeing it.

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

The tenant, by its full name.

namestringrequired

The secret's name.

Responses
200

The secret is gone.

versioninteger<int64> | null

The version the tenant now runs, which has the change. Null when nothing is deployed to the tenant yet.

min 0
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/secrets/string/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "version": 0
}

Was this page helpful?