Delete a certificate
To delete a certificate:
Management console
CLI
API
- In the management console, select the folder where the certificate was created.
- In the list of services, select Certificate Manager.
- Find the certificate to be deleted in the list.
- Click .
- In the menu that opens, click Delete.
- In the window that opens, click Delete.
If you don't have the Yandex.Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
View a description of the command:
yc certificate-manager certificates delete --help
-
View the list of certificates:
yc certificate-manager certificate list +----------------------+---------------+-------------+---------------------+----------+--------+ | ID | NAME | DOMAINS | NOT AFTER | TYPE | STATUS | +----------------------+---------------+-------------+---------------------+----------+--------+ | fpqmg47avvimp7rvmp30 | myupdatedcert | example.com | 2021-09-15 08:12:57 | IMPORTED | ISSUED | +----------------------+---------------+-------------+---------------------+----------+--------+
-
Run the command:
yc certificate-manager certificates delete \ --id fpqmg47avvimp7rvmp30
Command parameters:
--id
: Certificate ID.
Command results:
id: fpqmg47avvimp7rvmp30 folder_id: b1g7gvsi89m34qmcm3ke created_at: "2020-09-15T06:54:44.916Z" name: myupdatedcert description: description of myupdatedcert type: IMPORTED domains: - example.com status: ISSUED issuer: CN=example.com subject: CN=example.com serial: 3df79e43df7c3868397b78bfc15a431fa942a135 updated_at: "2020-09-15T08:37:20.746Z" issued_at: "2020-09-15T08:23:50.147Z" not_after: "2021-09-15T08:12:57Z" not_before: "2020-09-15T08:12:57Z"
To delete a certificate, use the delete method for the Certificate resource.