Delete LetsEncrypt Certificate
Given the following cert:
1root@php73:~# certbot certificates
2Saving debug log to /var/log/letsencrypt/letsencrypt.log
3
4- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
5Found the following certs:
6 Certificate Name: php72.example.com
7 Domains: php72.example.com php72.example.net
8 Expiry Date: 2020-11-19 01:30:55+00:00 (VALID: 85 days)
9 Certificate Path: /etc/letsencrypt/live/php72.example.com/fullchain.pem
10 Private Key Path: /etc/letsencrypt/live/php72.example.com/privkey.pem
11 Certificate Name: php73.example.com
12 Domains: php73.example.com php73.example.net
13 Expiry Date: 2020-11-23 21:37:01+00:00 (VALID: 89 days)
14 Certificate Path: /etc/letsencrypt/live/php73.example.com/fullchain.pem
15 Private Key Path: /etc/letsencrypt/live/php73.example.com/privkey.pem
16- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
And you want to delete php72.example.com do:
1root@php73:~# certbot delete --cert-name php72.example.com
2Saving debug log to /var/log/letsencrypt/letsencrypt.log
3
4- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
5Deleted all files relating to certificate php72.example.com.
6- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -