Delete a Vault entry permanently API Reference
DELETE
/tenants/{tenant}/vault/{path}
const url = 'https://api.kupe.cloud/api/v1/tenants/example/vault/example';const options = { method: 'DELETE', headers: { 'If-Match': 'example', Authorization: '<Authorization>', 'Content-Type': 'application/json' }, body: '{"confirm":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.kupe.cloud/api/v1/tenants/example/vault/example \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --header 'If-Match: example' \ --data '{ "confirm": "example" }'Permanently remove every version of the values, after you confirm the path and no secret uses it. The version is checked before the purge, not at the same instant, so a write that lands in between is removed too.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” tenant
required
string
Tenant name
path
required
string
Path in the tenant’s vault
Header Parameters
Section titled “ Header Parameters ” If-Match
required
string
KV version from the entry’s ETag
Request Body
Section titled “ Request Body ”Confirm the exact path
Media type application/json
object
confirm
string
Example generated
{ "confirm": "example"}Responses
Section titled “ Responses ”Entry permanently deleted
Bad Request
object
code
string
error
string
field
string
message
string
severity
string
Unauthorized
object
code
string
error
string
field
string
message
string
severity
string
Forbidden
object
code
string
error
string
field
string
message
string
severity
string
Not Found
object
code
string
error
string
field
string
message
string
severity
string
Conflict
object
code
string
error
string
field
string
message
string
severity
string
Precondition Failed
object
code
string
error
string
field
string
message
string
severity
string
Precondition Required
object
code
string
error
string
field
string
message
string
severity
string
Too Many Requests
object
code
string
error
string
field
string
message
string
severity
string
Service Unavailable
object
code
string
error
string
field
string
message
string
severity
string