Skip to content

Delete a stored policy (`policy`; idempotent).

DELETE
/v1/policies/{name}
curl --request DELETE \
--url https://ferritor.example.internal:7070/v1/policies/example
name
required
string

A stored policy’s name (secret-path rules, may contain /), or config:… for a config rule.

expected_version
integer format: int32

Only if it’s still at this version.

Deleted, or there was none.

Media typeapplication/json
object
deleted
required

False: there was no such policy.

boolean
revision
required
integer format: int64

Example generated

{
"deleted": true,
"revision": 1
}

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"
}
}