To remove a certificate, delete the following
sudo rm /etc/letsencrypt/renewal/www.mydomain.com.conf sudo rm -R /etc/letsencrypt/archive/www.mydomain.com sudo rm -R /etc/letsencrypt/live/www.mydomain.com
For my case, I bump into the following error after many fail attempt.
An unexpected error occurred: There were too many requests of a given type :: Error creating new authz :: too many failed authorizations recently: see https://letsencrypt.org/docs/rate-limits/
Thus hit the rate limit
There is a Failed Validation limit of 5 failures per account, per hostname, per hour. This limit is higher on our staging environment, so you can use that environment to debug connectivity problems.
I tested using –staging which is fine. After I remove
--staging, some configration still stick with staging setup, thus I have to delete the certificate and config.