DeleteCertificate

Removes an installed certificate, identified by its hash data.

Version
OCPP 2.0.1
Direction
CSMS → Charge Point
Functional block
Security

Deletion is by hash rather than by name, so the request is unambiguous even when several certificates share a subject.

Request

FieldTypeRequiredDescription
certificateHashDataCertificateHashDataTypeRequiredhashAlgorithm, issuerNameHash, issuerKeyHash and serialNumber.
json
[2, "19223201", "DeleteCertificate", {
  "certificateHashData": {
    "hashAlgorithm": "SHA256",
    "issuerNameHash": "3d8f...",
    "issuerKeyHash": "9b21...",
    "serialNumber": "0a1b2c3d"
  }
}]

Response

FieldTypeRequiredDescription
statusDeleteCertificateStatusEnumTypeRequiredResult.
statusInfoStatusInfoTypeOptionalReason code.
json
[3, "19223201", {
  "status": "Accepted"
}]

Values

DeleteCertificateStatusEnumType

ValueMeaning
AcceptedDeleted.
FailedThe station could not delete it.
NotFoundNo certificate matched the hash.

Implementation notes

Deleting the root that validates your own CSMS certificate disconnects the station permanently. Install the replacement first, confirm with GetInstalledCertificateIds, then delete.

NotFound usually means the certificate was already removed. Treat it as success.