Skip to main content

Delete a secret

Soft-delete a secret at a path. All versions of that path are marked deleted; they are not returned in list or get, and GET returns 410 Gone.

Endpoint: DELETE /v1/vaults/:vault_id/secrets/:path
Authentication: Bearer JWT (write permission or vault owner)

Example request

curl -X DELETE "https://api.1claw.xyz/v1/vaults/ae370174-9aee-4b02-ba7c-d1519930c709/secrets/api-keys/old-key" \
-H "Authorization: Bearer <token>"

Response

204 No Content — Success. No body.

Error responses

CodeMeaning
401Invalid or missing token
403No delete/write permission
404Vault not found

After deletion, GET .../secrets/:path for that path returns 410 Gone.