Delete credential
DELETE/v2/config/digital-wallet/openid/sdjwt/credential/:credentialId
Deletes a credential from the wallet of the holder, with every copy of its batch. The wallet marks the records as deleted, leaves them out of the list and the presentations, and then sends the OID4VCI credential_deleted notification to the issuer. That last step is best effort, so a failure there does not undo the delete. To decline an offer, delete its credential record. The wallet refuses to delete a Wallet Unit Attestation, or a credential that an extension manages.
Request
Path Parameters
Unique identifier of a credential stored in the holder's wallet.
Responses
- 204
- 400
- 401
- 500
The wallet deleted the credential. The response has no body.
Response Headers
The credential ID is unknown, the credential is a Wallet Unit Attestation, an extension manages the credential, or the wallet unit is not operational. The wallet also refuses this operation for a sandbox organisation.
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
{
"errorCode": 400,
"errorDescription": "Bad input parameter"
}
Unauthorized
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
{
"errorCode": 400,
"errorDescription": "Bad input parameter"
}
Internal server error
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
{
"errorCode": 400,
"errorDescription": "Bad input parameter"
}