## Revoke Certificate `origin_ca_certificates.delete(strcertificate_id) -> OriginCACertificateDeleteResponse` **delete** `/certificates/{certificate_id}` Revoke an existing Origin CA certificate by its serial number. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)). ### Parameters - `certificate_id: str` Identifier. ### Returns - `class OriginCACertificateDeleteResponse: …` - `id: Optional[str]` Identifier. - `revoked_at: Optional[datetime]` When the certificate was revoked. ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( user_service_key=os.environ.get("CLOUDFLARE_API_USER_SERVICE_KEY"), # This is the default and can be omitted ) origin_ca_certificate = client.origin_ca_certificates.delete( "023e105f4ecef8ad9ca31a8372d0c353", ) print(origin_ca_certificate.id) ``` #### Response ```json { "result": { "id": "023e105f4ecef8ad9ca31a8372d0c353", "revoked_at": "2024-09-06T18:43:47.928893Z" } } ```