clean cache ubuntu code example Example 1: remove all cache ubuntu $ sudo apt-get clean Example 2: apt get remove unnecessary files sudo apt-get clean