How to remove unused applications and libraries apt autoremove --purge apt autoremove - will remove all unused libraries and apps --purge - will also delete unused configuration and data files group: remove