Skip to content
Follow
Ubuntu Linux

How to Delete Let’s Encrypt SSL Certificates

Richard
Written by
Richard
Jun 2, 2022 Updated Jul 14, 2026 2 min read
How to Delete Let’s Encrypt SSL Certificates
How to Delete Let’s Encrypt SSL Certificates

Let’s Encrypt SSL certificates are digital credentials that secure website connections, and you delete them using the Certbot tool.

Certbot is a command-line program that helps you manage these free SSL certificates for your websites. It lets you create, renew, and also remove them.

You’ll typically find your Let’s Encrypt certificates stored in specific folders on your computer, like /etc/letsencrypt/live. You need to remove these files when a certificate is no longer needed or if it’s been compromised.

Before deleting, it’s a good practice to revoke the certificate. This lets the Certificate Authority know the certificate is no longer in use.

⚡ Quick Answer

Use the command line tool Certbot to delete Let’s Encrypt SSL certificates. Open your terminal and run `sudo certbot delete –cert-name yourdomain.com`, replacing `yourdomain.com` with your actual domain. If you omit the domain name, Certbot will list all registered domains for you to select from.

How to delete Let’s Encrypt SSL certificates on Ubuntu Linux

To delete Let’s Encrypt certificates on Ubuntu Linux, you can use the Certbot command to remove old certificate files you no longer need. This process helps keep your server tidy by cleaning up certificates that are not in use. You’ll need to access your server’s command line to run the specific command for the domain you want to manage.

Here’s how.

First, sign in to your server and open your command terminal. Then, run the commands below for the specific domain whose SSL certificate you want to delete.

🐧Bash / Shell
sudo certbot delete --cert-name example.com

Replace example.com with the actual domain name.

If you don’t reference a domain name and run the commands below, it will list all the domains registered on the server.

🐧Bash / Shell
sudo certbot delete

Then select the one from the list to delete.

💻Code
Saving debug log to /var/log/letsencrypt/letsencrypt.log

Which certificate(s) would you like to delete?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: example.com
2: example1.net
3: example2.org
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input blank to select all options shown (Enter 'c' to cancel): 1

Select the domain next to the number you wish to delete and press Enter.

That should do it!

Related post:

Conclusion:

  • Deleting Let’s Encrypt SSL certificates using Certbot is essential for maintaining a secure and organized server environment.
  • After revoking a certificate, remnants of the certificate may still exist on the server, which can be eliminated by using Certbot to delete them.
  • Following the step-by-step process described in this post ensures that unnecessary certificates are removed, optimizing the server’s security and efficiency.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Revoke Let's Encrypt Certificates on Ubuntu Linux
Ubuntu Linux How to Revoke Let's Encrypt Certificates on Ubuntu Linux
Free Wildcard SSL Certificates with Let's Encrypt
Ubuntu Linux Free Wildcard SSL Certificates with Let's Encrypt
How to Install Bitwarden on Ubuntu Linux
CMS How to Install Bitwarden on Ubuntu Linux
How to Install Jitsi Meet on Ubuntu Linux
Ubuntu Linux How to Install Jitsi Meet on Ubuntu Linux

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *