That command shows MANY domains...including the one I am trying to delete.
(edited out the domains)
RENEW:
root@certbot:/etc/letsencrypt# ./cert_renew.sh
Saving debug log to /var/log/letsencrypt/letsencrypt.log
edited out
Renewing an existing certificate for domain and 55 more domains
Certbot failed to authenticate some domains (authenticator: standalone). The Certificate Authority reported these problems:
Domain: domain
Type: dns
Detail: DNS problem: NXDOMAIN looking up A for - check that a DNS record exists for this domain
Domain: domain
Type: dns
Detail: DNS problem: NXDOMAIN looking up A for - check that a DNS record exists for this domain
Hint: The Certificate Authority failed to download the challenge files from the temporary standalone webserver started by Certbot on port 80. Ensure that the listed domains point to this machine and that it can accept inbound connections from the internet.
Failed to renew certificate 0001 with error: Some challenges have failed.
All renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/0001/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
root@certbot:/etc/letsencrypt#
CERTBOT CERTIFICATES
root@certbot:/etc/letsencrypt/renewal# certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Found the following certs:
Certificate Name: 0001
Serial Number: 4b*****************************64
Key Type: RSA
Domains: many domains
Expiry Date: 2021-10-16 22:03:43+00:00 (VALID: 4 days)
Certificate Path: /etc/letsencrypt/live/0001/fullchain.pem
Private Key Path: /etc/letsencrypt/live/0001/privkey.pem
DELETE
root@certbot:/etc/letsencrypt# certbot delete --cert-name domain
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The following certificate(s) are selected for deletion:
Are you sure you want to delete the above certificate(s)?
(Y)es/(N)o: y
No certificate found with name domain (expected /etc/letsencrypt/renewal/domain.conf).
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
root@certbot:/etc/letsencrypt#