ZITADEL Docs
APIsCore ResourcesV2Action

RemovePublicKey

Remove Public Key

Removes the public key from the target. This is a permanent action and can not be undone. Note that you can only remove inactive keys. Attempting to remove an active key will result in an error. For break glass scenarios, deactivate the key first and then remove it. Removing a non-existing key is a no-op.

Required permission:

  • action.target.write
DELETE
/v2/actions/targets/{target_id}/publickeys/{key_id}

Path Parameters

target_id*string

TargetID is the unique identifier of the target to remove the public key from.

key_id*string

KeyID is the unique identifier of the public key to remove.

Response Body

application/json

application/json

curl -X DELETE "https://loading/v2/actions/targets/string/publickeys/string"
{
  "deletionDate": "1s"
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?