Delete key
Retires a key of the organisation. Send the body {"confirm": "DELETE"}. A key is never deleted: its delete makes it a retired key.
- A retired key signs nothing more. It leaves the key list, does not count towards the limit of 1000 keys, and the other key operations no longer find it.
- Its record keeps the public key and the certificate chain as evidence of what the key signed, until the organisation is purged. Until then it stays in its key store, so that key store cannot be deleted.
- The wallet destroys the private key in the key store, as the key store allows, also for a key that you referenced: the Transit key (
localOpenBao,vault), the Google Cloud KMS crypto key version (after its destroy period), the AWS KMS key (deletion scheduled after 7 days) or the Azure Key Vault key (all its versions). In the HSM of the installation or a DPoD partition, only a key pair that the wallet created (label prefixows:), and only when the HSM signer allows it. A private key that another key of the platform still uses is destroyed only with the last of these keys. A key of a remote signing key store (csc) stays at the QTSP: the wallet only stops using it. When the key store refuses or does not answer, the key stays retired and the purge tries again.
The wallet refuses the wallet key of the organisation (the automatic key of the deployment, the holder identity of the organisation wallet; it is never deleted) and a key in use: by a credential definition, a presentation definition, a status list, the signed issuer metadata, a wallet provider configuration, or an issuance or verification in progress. Read key usage shows the uses and canDelete. A test certificate of the key goes into the CRL of its test CA in the same change.
Authorizations
AuthorizationstringheaderrequiredYour API key with the prefix
ApiKey:ApiKey <your-api-key>. Get an API key.Scope:
keys:delete
Path parameters
keyId stringrequiredThe
keyIdof a key of the organisation, from List keys or from the answer of Create key. It is also thekidof its JWK.
Body
The confirmation of the retirement.
confirmenum<string>requiredMust be
DELETE.Available options:
DELETEExample:
"DELETE"
Response
The key is retired. No body.
No body.