Skip to content
Primary navigation

Delete certificate

admin.organization.certificates.delete(certificate_id) -> CertificateDeleteResponse { id, object }
DELETE/organization/certificates/{certificate_id}

Delete a certificate from the organization.

The certificate must be inactive for the organization and all projects.

ParametersExpand Collapse
certificate_id: String
ReturnsExpand Collapse
class CertificateDeleteResponse { id, object }
id: String

The ID of the certificate that was deleted.

object: :"certificate.deleted"

The object type, must be certificate.deleted.

Delete certificate

require "openai"

openai = OpenAI::Client.new(admin_api_key: "My Admin API Key")

certificate = openai.admin.organization.certificates.delete("certificate_id")

puts(certificate)
{
  "object": "certificate.deleted",
  "id": "cert_abc"
}
Returns Examples
{
  "object": "certificate.deleted",
  "id": "cert_abc"
}