Skip to content

Delete a Vault entry permanently API Reference

DELETE
/tenants/{tenant}/vault/{path}
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.

tenant
required
string

Tenant name

path
required
string

Path in the tenant’s vault

If-Match
required
string

KV version from the entry’s ETag

Confirm the exact path

Media type application/json
object
confirm
string
Example generated
{
"confirm": "example"
}

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