Skip to main content

Delete key

DELETE 

/v2/config/digital-wallet/openid/key-management/keys/:keyId

Deletes a key of the organisation. The wallet deletes only its record of the key. It never deletes the key in a key store of the organisation (vault, gcp-kms, aws-kms, azure-key-vault, dpod) or at a QTSP (csc).

The wallet refuses to delete a key that is in use: the default key, a key that a credential definition, a presentation definition or a status list signs with, or a key of an issuance or a verification in flight. The read key usage operation tells where the key is in use (canDelete).

This operation needs a request body: send {"confirm": "DELETE"}. The service refuses the request when the body is missing.

When the key has a test certificate of the built-in test CA, the test CA revokes it, and the wallet signs the new CRL in the same change. When the key of the test CA cannot sign, the answer is 503 (Failed to sign the CRL of the test CA: Key management service is not available) and the key stays.

Request​

Path Parameters

    keyId stringrequired

    Unique identifier of the key

Body

required

Confirmation of the delete operation.

    confirm stringrequired

    Possible values: [DELETE]

    Confirmation string. Set the value to DELETE.

Responses​

Key deleted successfully. The response body is empty.

Response Headers
    Loading...