How to clean up your computer and free up disk space
Step-by-step guide to free up space on your PC: delete temporary files and downloads, empty the trash, uninstall programs you no longer use, and control what auto-start at boot.
Updated
The slow computer, the “full” disk and that low-space message that keeps popping up are rarely a hardware fault: in most cases it is simply a buildup of useless files. Temporary files nobody ever deletes, duplicate downloads, a trash that’s never emptied, programs installed for a single use that never left, and a long list of things opening on their own every time the machine boots.
This guide works on Windows, macOS and Linux and covers exactly that: freeing space, clearing away what’s not used, and stopping the computer from choking again. By the end of the half hour you’ll have a cleaner disk and a computer that boots and runs without making the processor work for nothing.
Before you start, close any open programs — especially browsers, editors and games. Cleaning files while a program is still in use can make it lose what it was doing or error out mid-way.
Before you begin
Set aside half an hour with the computer to yourself, no rush. The notes stop you from deleting something you were going to need by mistake, so keep a pen or notepad handy.
- Half an hour with the computer to yourself
- Important programs closed (including browser and games)
- Notepad or paper for anything you want to keep
- An internet connection, if you want to install a disk-analysis tool (optional)
Find out what’s taking up space
Before deleting anything, figure out where the space is going. On Windows, go to Settings > System > Storage and click “Show more categories” to see the size of each section: apps, documents, images, videos and temporary. On macOS, open the Apple menu > System Settings > General > Storage. On Linux, most distros have a disk manager that shows the same thing.
Jot down the two or three biggest categories. That number decides where to start: if most of it is “Apps”, step 5 (uninstalling) will do the most good; if it’s “Temporary” or “Downloads”, steps 2 and 4 make the biggest difference. Don’t delete anything yet — map first, then dig.
Delete temporary files
Temporary files are what a program creates to work and never bothers to clear afterwards: leftover installers, browser caches, thumbnails and remnant updater files. On Windows, open Disk Cleanup (just type “disk cleanup” in the search), select the C: drive and let it calculate. Check the boxes for temporary files, thumbnail cache and the trash, then confirm. You can also open your temp folder (%temp%) and clear what’s inside.
On macOS there’s a shortcut: “About This Mac > Storage > Manage” offers suggested cleanups made by the system. On Linux, apt clean (Debian/Ubuntu) or yum clean (Fedora), plus a clear of /tmp, does the job.
On all three systems the quickest route is your own built-in cleanup tool — after that, you can still spot per-app leftovers from step 1.
Empty the trash properly
The trash is the yogurt at the back of the fridge you never throw out: you toss things in, but you never recycle them. Files you deleted still take up full disk space until the trash is emptied. On Windows, right-click the Recycle Bin icon and choose “Empty Recycle Bin”. On macOS, open the Trash and hit “Empty” (or Cmd + Shift + Delete). On Linux, pick “Empty” from the trash icon’s menu.
If space is critical, turn on automatic cleanup: on Windows, in Settings > System > Storage, enable “Storage Sense” to clear it periodically. Just empty it after checking nothing important got tossed by mistake — the trash is your last safety net.
Tidy up the Downloads folder
The Downloads folder is what dirties the computer the most: installers for programs you already installed, files downloaded twice, a once-read PDF, images you no longer use. Open the folder (at C:\Users\YourName\Downloads on Windows, ~/Downloads on macOS or Linux) and sort the files by size or date.
Delete what’s clearly useless: duplicate installers, old message attachments, failed downloads. Move what you want to keep into the right folders (Documents, Pictures), and use one folder per topic. This is where you reclaim the most space in one go, because most people never look in there and it grows to gigabytes.
Uninstall programs you don’t use
Programs pile up: the editor you opened once, the video player that came bundled, trial packages that expired and never left. Go to Settings > Apps (Windows) or your apps list (macOS) and scroll through looking for anything you don’t recognize.
Before uninstalling, check the name and what it does. System or manufacturer programs with technical names should be left alone; if something looks odd, search the name online. When you uninstall, accept the option to also remove settings and preferences if offered — that’s the one that actually cleans up. When done, restart the computer so removals finish and shortcuts disappear.
Control what launches at startup
One of the biggest causes of slowness is the list of things that open on their own the moment the computer boots: messengers, updaters, cloud programs, pointless drivers. On Windows, press Ctrl + Shift + Esc to open Task Manager, go to the “Startup” tab and disable anything you don’t need at boot. On macOS, go to System Settings > General > Login Items. On Linux, systemd or each distro’s startup-session tool does the same.
Be selective: keep your antivirus (important), but turn off whatever is cosmetic or a tool you’d open when you want it. This makes the computer boot faster and stops background processes from eating memory just to sit there. Restart and notice the difference in boot time.
Clean and organize the desktop
The desktop became everyone’s umbrella stand: a file you download, “saved for later”, a meeting photo, it all lands there to avoid spending a second filing it properly. Open the desktop and look it over calmly. Group by type (pictures, documents, spreadsheets) and move them to the right folders, or make an “Organize” folder right there on the desktop for what has no home yet.
With the desktop clean, the computer even feels faster, because fewer things cross the icon grid when you open the explorer. If you want an even tidier look, hide the icons with right-click > View > Show desktop icons (Windows) or simply keep only the essentials.
Keep the cleanup on schedule
Cleaning once isn’t enough: the junk comes back. Set a short monthly review (10 to 15 minutes) to empty the trash, run Disk Cleanup and check the Downloads folder. Whenever you uninstall a program, take the chance to confirm nothing was left behind in Downloads.
Beyond the routine, let the system do the heavy lifting: enable smart storage (Storage Sense on Windows, Optimize Storage on macOS), use an external drive for what you want to keep, and keep the system updated — updates also bring cleanup and performance fixes. Half an hour a month and the computer never locks up for lack of space again.
Common mistakes that make cleanup go wrong
- Uninstalling programs you don’t actually know. Look up technical-sounding names online first — some are system components and can break things.
- Deleting the whole Downloads folder without looking. It may hold something you needed, and the trash is your only safety net.
- Forgetting the trash still takes up space. Deleting a file isn’t deleting its space; only emptying the trash is.
- Turning off everything at startup at once. The antivirus should stay. Disable only tools you’d open when you want them.
- Cleaning with an important program open. Closing everything first avoids losing a file in use or hitting an error.
- Expecting a physical cleanup to fix everything. What weighs it down is software buildup; good hardware stays good even when the PC is full.
Frequently asked questions
Is it safe to delete temporary files?
Yes. Temporary files exist for quick use and clean themselves up; if the program that made them is closed, you can delete them without worry. Just don't touch them while an important program is running, so you don't interrupt something mid-way.
Can I uninstall any program I don't recognize?
No. Before uninstalling, check the name and what it does in Control Panel or Settings. System programs, drivers and manufacturer tools often have technical-sounding names — removing them can break something. If in doubt, search for the name online first.
How do I see what's taking up the most space?
On Windows, go to Settings > System > Storage; on macOS, open the Apple menu > System Settings > General > Storage. Most systems also have a built-in disk analyzer that shows the size of each folder and category.
Does cleaning the desktop make the computer faster?
Only if your desktop is full of large files that belong somewhere else. What actually slows things down is a full memory and programs opening on their own at startup — which is exactly what steps 6 and 7 deal with.
Informational content. For risky situations or technical, legal or medical doubts, talk to a professional.