purge linux code example Example 1: apt remove sudo apt-get --purge autoremove packagename Example 2: apt uninstall sudo apt-get remove [pkg]