Deletes a certificate and its private key and certificate chain.

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.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteCertificate

The operation that you want to perform. Set the value to DeleteCertificate.

CertificateId String Yes 9a28de48-8d8b-484d-a766-dec4****

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

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

Response parameters

Parameter Type Example Description
RequestId String d97f6c33-ca26-4de2-a580-0e2fd1c5bfb0

The ID of the request.


Sample requests

http(s)://[Endpoint]/? Action=DeleteCertificate
&<Common request parameters>

Sample success responses

XML format


JSON format

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

Error codes

HttpCode Error code Error message Description
404 Certificate.NotFound The specified certificate is not found. The error message returned because the specified certificate does not exist.

For a list of error codes, visit the API Error Center.