sudo apr-remove code example Example 1: uninstall package ubuntu sudo apt remove <package name> Example 2: apt uninstall sudo apt-get remove [pkg]