Letsencrypt allows you to get a free certificate that you will need to renew each three months.
There are a lot of tutorials online on how to get one or more and I would like more to focus on how to delete them when you don't need it anymore.
Deleting a SSL certificate is not about just deleting one file only. You need to go through a couple of them as well as some directories associated with the certificate for the domain name that you want to get rid of.
The list of directories is :
/etc/letsencrypt/live /etc/letsencrypt/renewal /etc/letsencrypt/archive
Certbot allows you to install a certificate but also to delete them. It provides an easy way to do the deletion for you by selecting the index number from which you can choose the domain name to remove :
% sudo certbot delete
You can also provide the domain name directly on the command line :
% sudo certbot delete --cert-name website.com
There you go !
letsencrypt CLI shell