Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Blog
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
Yandex project
© 2023 Intertech Services AG
Yandex Certificate Manager
  • Getting started
  • Step-by-step guides
    • All guides
    • Certificate from Let's Encrypt
    • User certificate
      • Create a certificate
      • Get the contents of a certificate
      • Renewing a certificate
      • Edit a certificate
      • Delete a certificate
    • Domain
    • Backups
    • Adding alerts for certificates
  • Tutorials
  • Concepts
  • Access management
  • Pricing policy
  • API reference
  • Questions and answers
  1. Step-by-step guides
  2. User certificate
  3. Delete a certificate

Deleting a custom certificate

Written by
Yandex Cloud

To delete a custom certificate:

Management console
CLI
API
  1. In the management console, select the folder where the certificate was created.
  2. In the list of services, select Certificate Manager.
  3. Find the certificate to be deleted in the list.
  4. Click .
  5. In the menu that opens, click Delete.
  6. 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.

  1. View a description of the command:

    yc certificate-manager certificates delete --help
    
  2. View the list of certificates:

    yc certificate-manager certificate list
    

    Command result:

    +----------------------+---------------+-------------+---------------------+----------+--------+
    |          ID          |     NAME      |   DOMAINS   |      NOT AFTER      |   TYPE   | STATUS |
    +----------------------+---------------+-------------+---------------------+----------+--------+
    | fpqmg47avvimp7rvmp30 | myupdatedcert | example.com | 2021-09-15 08:12:57 | IMPORTED | ISSUED |
    +----------------------+---------------+-------------+---------------------+----------+--------+
    
  3. Run this command:

    yc certificate-manager certificates delete \
      --id fpqmg47avvimp7rvmp30
    

    Where --id: Certificate ID.

    Command result:

    id: fpqmg47avvimp7rvmp30
    folder_id: b1g7gvsi89m34qmcm3ke
    created_at: "2020-09-15T06:54:44.916Z"
    ...
    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 REST API method for the Certificate resource or the CertificateService/Delete gRPC API call.

Was the article helpful?

Language / Region
Yandex project
© 2023 Intertech Services AG