Clearing up Space on Pop OS
This page contains notes on commands to clear up space on a Pop!_OS install.
Before going through this, below is a screenshot of the drive and unused space.
My Pop!_OS install is on that last partition, and there is 75.99 GB of unused space. At the end of this, we'll see how much space has been cleared up.
Clear APT Cache
Among other things, the second command should remove old kernals automatically. Especially if you've had your install for a long time, these can build up and take space.
Clean/Shrink System Logs
If you've never cleaned up the system logs before, they can actually take up quite a bit of space. To see how much space they're taking up, we can use the below command.
To shrink logs to only contain the latest 100MB of logs, you can use the below command.
Clean Thumbnail Cache
This is where GNOME and Pop!_OS store thumbnail previews of files in the files manager. We can safely delete these.
Delete Old tmp Files
Now let's delete any temporary files that apps have left behind.
Clear Snap/Flatpak Cache
The below steps are obviously if you use Snap or Flatpak.
When running the below commands, you can read through what exactly is being deleted, but this is a safe operation. These are deleting unused runtimes and SDKs that are no longer needed.
Below is for clearing up Snap cache.
Finishing Up
Let's see how much space has been cleared from this.
Previously, there was 75.99 GB of unused space; now there is 93.34 GB of free space. That's almost 20 GB cleared up, and with just about 2 minutes of commands!
Part of: YouTube Channel Notes