Large and Old Files: How to Find and Remove Them
In this article
This article explains how to find and remove large and old files on your computer, which is a common cause of low disk space. You'll learn practical methods for both Windows and macOS, along with safety tips to avoid deleting important data.
Why Large and Old Files Accumulate
Computers naturally accumulate files over time. Downloads folder items, temporary installation files, old backups, and media files like videos and photos are the usual culprits. Many programs also create cache files that grow without notice. When these files are large and old, they waste significant storage space and can slow down your system.
How to Find Large Files on Windows
Windows offers several built-in tools to locate large files. The simplest method is using File Explorer's search feature. Open File Explorer, select a drive (like C:), click the search bar, and type size:>1GB to find files larger than 1 gigabyte. You can adjust the number (e.g., size:>500MB). To sort results by size, click the "Size" column header.
For more control, use the Storage settings. Go to Settings > System > Storage. This shows a breakdown of what's using space. Click on categories like "Temporary files" or "Other" to see individual large items. You can also enable "Storage Sense" to automatically delete temporary files.
How to Find Large Files on macOS
On a Mac, the Finder's search can find large files. Open a Finder window, press Command+F, then click the "Kind" drop-down and select "File size". Choose "is greater than" and enter a value like 1 GB. You can also use the "Date last opened" or "Date modified" criteria to filter for old files.
Alternatively, go to Apple Menu > About This Mac > Storage > Manage. This opens a summary with recommendations like "Optimize Storage" and "Reduce Clutter". The "Documents" section often lists large files. For a more detailed view, the built-in utility "Disk Utility" can show used space, but it doesn't list individual files.
Using Command-Line Tools for Precision
If you're comfortable with the terminal, command-line tools give you exact control. On Windows PowerShell, you can run:
Get-ChildItem -Path C:\ -Recurse -File | Sort-Object Length -Descending | Select-Object -First 20 FullName, Length
This lists the 20 largest files on the C: drive. On macOS or Linux, the find command works well:
find / -type f -size +1G -exec ls -lh {} \;
This finds files larger than 1 GB. To find old files, add -mtime +365 for files modified more than a year ago. Be careful with these commands—they can output a lot of data and may require admin privileges for system folders.
Common Problems and Mistakes
One common mistake is deleting system files that are essential. For example, the Windows WinSxS folder appears huge but should not be manually deleted. Similarly, macOS's System folder contains required files. Always check the file path before deleting. Another issue is that some large files are hidden. In File Explorer, enable "Hidden items" under the View tab. On macOS, press Command+Shift+. to show hidden files.
Another problem is that "old" doesn't always mean "unneeded". For instance, a project file from two years ago might still be relevant. Always open the file or check its location before removal. Also, be aware that some files are compressed or sparse, so their size on disk may differ from their logical size.
What to Delete vs. What to Keep
Safe to delete:
- Temporary files (in
%TEMP%on Windows,/tmpon macOS) - Old installer files (.exe, .dmg) that you no longer need
- Duplicate downloads
- Trash or Recycle Bin contents
- Old logs and crash reports
Exercise caution with:
- Documents and media you haven't opened in years—check first
- Files in system folders (Program Files, /System, /Library)
- Backup files—you might need them for recovery
- Files with unusual extensions—verify what they are
Automating Cleanup with Built-in Tools
Both operating systems have built-in cleanup utilities. On Windows, Disk Cleanup (search for it in the Start menu) can remove temporary files, system cache, and old Windows updates. You can also run cleanmgr from the command line. On macOS, Storage Management (from About This Mac) offers "Optimize Storage" which can offload old files to iCloud if you have that enabled, and "Empty Trash Automatically" which removes items after 30 days.
These tools are safe because they only target files that the system recognizes as disposable. However, they don't find large personal files—that's where the manual methods above are needed.
Third-Party Tools: Pros and Cons
Many third-party apps (like WinDirStat for Windows or DaisyDisk for macOS) visualize disk usage with colorful maps. They make it easy to spot large files and folders. The pros are a clear visual interface and the ability to scan entire drives quickly. The cons are that some are paid, and you must download software from the internet, which carries a small risk. Always download from official sources and check reviews. For most users, built-in tools are sufficient.
Frequently Asked Questions
How do I find files older than a year?
In Windows File Explorer, use the search bar and type date:<YYYY-MM-DD (e.g., date:<2024-01-01) to find files modified before that date. On macOS Finder, after pressing Command+F, click the "Date Modified" drop-down and choose "is before", then set the date. For a broader search, combine size and date filters.
Is it safe to delete old files from the Downloads folder?
Generally yes, but check first. Downloads often contain installers you no longer need. However, some might be important documents or photos. Sort by size and date, and open any file you don't recognize. Once you're sure, delete them. Empty the Recycle Bin or Trash to free the space.
What is the largest file on my system?
The largest file is often a virtual memory file (pagefile.sys on Windows, swapfile on macOS) or a hibernation file (hiberfil.sys). These are system files and should not be deleted. To find the largest user file, use the search methods described above with a high size threshold like size:>5GB.
Why does a file show a different size on disk?
This happens due to file system overhead. The "size" is the logical length of the file, while "size on disk" is the actual space used, which includes cluster slack. Also, compressed files (like NTFS compression) may use less space on disk. This is normal and not a cause for concern.
How can I free up space without deleting anything?
You can compress files or folders (right-click > Properties > Advanced > Compress contents on Windows; right-click > Compress on macOS). You can also move files to an external drive or cloud storage. Disabling hibernation (with powercfg /h off on Windows) can free up space equal to your RAM size, but it disables the hibernate feature.
What should I do if I accidentally delete a file?
Check the Recycle Bin or Trash first—it's usually there. If you've emptied it, you may need data recovery software, but success isn't guaranteed. To avoid this, always double-check before deleting and consider moving files to an external drive instead of permanent deletion.