Skip to content

Delete secret API Reference

DELETE
/tenants/{tenant}/secrets/{name}
curl --request DELETE \
--url https://api.kupe.cloud/api/v1/tenants/acme/secrets/old-credentials \
--header 'Authorization: <Authorization>'

Deleting a secret removes its definition and its copies from every target cluster namespace. Each target shows Withdrawing until the platform removes the source of its copy. The cluster copy is then removed, normally within seconds, later if the cluster is down. The values stay in Vault at secretPath; deleting them is the separate permanent delete, DELETE /vault/{path}.

tenant
required
string

Tenant name

name
required
string

Secret name

Secret deleted

Invalid name

object
code
string
error
string
field
string
message
string
severity
string

Missing or invalid authentication

object
code
string
error
string
field
string
message
string
severity
string

Admin access required

object
code
string
error
string
field
string
message
string
severity
string

Secret not found

object
code
string
error
string
field
string
message
string
severity
string

Rate limit exceeded

object
code
string
error
string
field
string
message
string
severity
string