apt uninstall npm code example Example 1: apt uninstall sudo apt-get remove [pkg] Example 2: sudo apt uninstall sudo apt-get remove pkg