DELETE
/vault/secrets/{path}Delete Secret
Revokes a secret at once: it can no longer be read or revealed.
Its key material is destroyed when the retention window ends.
Only the owner can delete a secret.
Parameters
| projectId * | query | The project's id. |
| path * | path | The secret's path: |
Responses
| HTTP | K9O Code | Description |
|---|---|---|
| 204 | The secret is revoked. | |
| 401 | The request carries no authenticated caller. | |
| 403 | The caller can see the secret but doesn't own it. | |
| 404 | No such secret visible to the caller. | |
| 500 | An internal error. Retry later. |
TypeScript
// const k9o = new K9o({ orgSlug: 'playground', projectSlug: 'storefront', apiKey: 'k9o_…' })
const { data } = await k9o.kibo.vault.secrets.delete('<name>')Showing example in TypeScript