## Revoke Certificate `client.originCACertificates.delete(stringcertificateId, RequestOptionsoptions?): 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 - `certificateId: string` Identifier. ### Returns - `OriginCACertificateDeleteResponse` - `id?: string` Identifier. - `revoked_at?: string` When the certificate was revoked. ### Example ```node import Cloudflare from 'cloudflare'; const client = new Cloudflare({ userServiceKey: process.env['CLOUDFLARE_API_USER_SERVICE_KEY'], // This is the default and can be omitted }); const originCACertificate = await client.originCACertificates.delete( '023e105f4ecef8ad9ca31a8372d0c353', ); console.log(originCACertificate.id); ``` #### Response ```json { "result": { "id": "023e105f4ecef8ad9ca31a8372d0c353", "revoked_at": "2024-09-06T18:43:47.928893Z" } } ```