Nginx Failing as I removed a Certbot Certificate

I have a VM where I was hosting a website my_url.com via Nginx. I removed the SSL certficate via Certbot’s sudo certbot delete.

After that I removed /etc/nginx/sites-available/my_url.com and /etc/nginx/sites-enabled/my_url.com

When I try to restart the Nginx service it fails with the following logs:

Feb 19 15:09:31 staging nginx[2923708]: 2025/02/19 15:09:31 [emerg] 2923708#2923708: cannot load certificate "/etc/letsencrypt/live/my_url.com>
Feb 19 15:09:31 staging nginx[2923708]: nginx: configuration file /etc/nginx/nginx.conf test failed
Feb 19 15:09:31 staging systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Feb 19 15:09:31 staging systemd[1]: nginx.service: Failed with result 'exit-code'.
Feb 19 15:09:31 staging systemd[1]: Failed to start nginx.service - A high performance web server and a reverse proxy server.

Don’t know why it is still holding onto the ssl certificate?

Read more here: Source link