Delete certificate
admin.organization.certificates.delete(strcertificate_id) -> CertificateDeleteResponse
DELETE/organization/certificates/{certificate_id}
Delete a certificate from the organization.
The certificate must be inactive for the organization and all projects.
Delete certificate
import os
from openai import OpenAI
client = OpenAI(
admin_api_key=os.environ.get("OPENAI_ADMIN_KEY"), # This is the default and can be omitted
)
certificate = client.admin.organization.certificates.delete(
"certificate_id",
)
print(certificate.id){
"object": "certificate.deleted",
"id": "cert_abc"
}
Returns Examples
{
"object": "certificate.deleted",
"id": "cert_abc"
}