How to Delete a Site From Certbot

If you used the certbot utility to obtain your free SSL certificate from Let’s Encrypt, but now wish to delete it, there’s a very simple way to do it. Follow along with us as we show you how to delete a site’s certificate data with certbot on Linux.

Option 1. To delete a site in certbot, run the following command:

# certbot delete

Enter the number that corresponds to the site you wish to delete, then press Enter.

Terminal output prompting for deleting a site in cerbot

Option 2. The other option is to skip the prompt and just specify your domain name in the certbot delete command:

# certbot delete --cert-name

Note that you will still need to manually delete the related SSL lines from your Apache or NGINX configuration file(s), which were previously added automatically by certbot.

Leave a Comment

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