certbot remove certificate nginx

C++
sudo certbot delete --cert-name example.com# Show the list of certificates
certbot certificates

# Remove certificates for a given domain
sudo certbot delete --cert-name $mydomaincertbot delete --cert-name example.com
Source

Also in C++: