All Products
Search
Document Center

Key Management Service:DeleteCertificate

Last Updated:Jul 29, 2025

Deletes a certificate and the private key and certificate chain of the certificate.

Operation description

After the certificate and its private key and certificate chain are deleted, they cannot be restored. Proceed with caution.

In this example, the certificate whose ID is 9a28de48-8d8b-484d-a766-dec4**** and its private key and certificate chain are deleted.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
CertificateIdstringYes

The ID of the certificate. It is the globally unique identifier (GUID) of the certificate in Alibaba Cloud Certificate Manager.

9a28de48-8d8b-484d-a766-dec4****

For more information about common request parameters, see Common parameters.

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

d97f6c33-ca26-4de2-a580-0e2fd1c5bfb0

Examples

Sample success responses

JSONformat

{
  "RequestId": "d97f6c33-ca26-4de2-a580-0e2fd1c5bfb0"
}

Error codes

HTTP status codeError codeError messageDescription
404Certificate.NotFoundThe specified certificate is not found.The specified certificate does not exist.

For a list of error codes, visit the Service error codes.