Purging a package means not only removing the package from the system but also its files and configuration. Example: sudo dpkg -P package_name
Removing a package only removes the package but retains the files and configuration: sudo dpkg --remove package_name.