đź§ą Kali VM Cleanup Script with Desktop Launcher

đź§ą Kali VM Cleanup Script with Desktop Launcher

While installing AI/ML packages in my Kali Linux VM, I ran into a “No space left on device” error. The issue wasn’t my main disk (which had plenty of space) but large caches piling up in my home directory. To fix this, I created a cleanup script and paired it with a desktop icon, so I can free space with a quick double-click.

The script (cleanup.sh) clears apt caches, removes unused packages, vacuums system logs older than 5 days, deletes pip and user caches, and shows a “Cleanup complete!” notification.

The desktop launcher (Cleanup.desktop) runs this script in a terminal with one click from the desktop.

With this setup, I don’t have to type cleanup commands anymore — whenever disk space starts to get tight, I just click the Cleanup icon and the VM is back in shape. This is now part of my AI/VM maintenance toolkit.