Skip to Content
ZITADEL Docs
APIsCore ResourcesV2Web Key

Delete Web Key

Delete a web key pair. Only inactive keys can be deleted. Once a key is deleted, any tokens signed by this key will be invalid. Note that the JWKs OIDC endpoint returns a cacheable response. In case the web key is not found, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the web key was deleted during the request.

Required permission:

  • iam.web_key.delete
DELETE
/v2/web_keys/{id}

Path Parameters

id*id

The unique identifier of the key to delete.

Response Body

Success

application/json
  1. response
deletionDate?deletion_date

The timestamp of the deletion of the key. Note that the deletion date is only guaranteed to be set if the deletion was successful during the request. In case the deletion occurred in a previous request, the deletion date might be empty.

Formatdate-time
Example Request
curl -X DELETE 'https://example.com/v2/web_keys/string'
Example Response200
{  "deletionDate": "2023-01-15T01:30:15.01Z"}

Was this page helpful?