How does purge differ from remove?
sudo apt purge nginx
- It also deletes config files
- It also removes all the deps
- It keeps the package cached
- It only stops the service
apt remove leaves configuration under /etc; purge removes the package and its config files.