Skip to content

Delete one version (`delete`).

DELETE
/v1/versions/{path}
curl --request DELETE \
--url 'https://ferritor.example.internal:7070/v1/versions/example?version=1'

The others stay as they are; deleting the latest makes the newest live one left the latest. 404 unless that version is live. Restorable until purged. A route of its own, not a parameter of DELETE /v1/secrets/{path}: a server without it answers 405 rather than deleting every version.

path
required
string

A canonical secret path, slashes included (billing/db); its first segment is its namespace.

version
required
integer format: int32
>= 1

The version to delete, from 1.

Deleted.

An error: see error.code.

Media typeapplication/json

Every error’s body.

object
error
required
object
code
required

Match on this, never on the message.

string
Allowed values: invalid_argument unauthenticated permission_denied not_found method_not_allowed version_mismatch live_version no_namespace unknown_profile busy aborted misdirected_request sealed unaudited unknown_kek policy_unverified rate_limited unavailable failed_precondition internal
message
required

For people; may change.

string

Example

{
"error": {
"code": "invalid_argument"
}
}