To completely remove NGINX and Let's Encrypt (Certbot) from your Ubuntu server, you'll need to perform a series of steps to ensure that all files, configurations, and dependencies are properly removed.
Here's how to do it:
Before you remove NGINX, make sure it's stopped and disabled:
sudo systemctl stop nginx