How to uninstall from Debian Linux

Linux is still something that's new to me, I know the basics like to install some software I need to run sudo apt-get update and sudo apt-get install in the terminal. But I never really knew how to 'undo' these actions, today when I was trying to fix another bug, I came across the following ways to uninstall the software are installed in Linux terminal.

sudo apt-get remove - Packages installed are removed (Does NOT include configuration files).

sudo apt-get purge - Purge is identical to remove except that packages are removed and purged. Purge meaning that any configuration files are deleted too.

This is going to so useful!