How to Free Up Disk Space on Windows and macOS
When your disk fills up, your computer slows down, applications crash, and system updates fail. A full SSD can even reduce its lifespan due to write amplification. Here is how to clean it up safely and reclaim tens of gigabytes without deleting anything important.
How to Check Your Disk Usage
Before cleaning, understand what is taking space. On Windows, open Settings → System → Storage to see a color-coded breakdown. On macOS, go to Apple menu → System Settings → General → Storage. Both show which categories consume the most space so you can target your cleanup efforts effectively.
Windows
1. Storage Sense (Automatic)
Settings → System → Storage → Storage Sense → Turn onStorage Sense automatically deletes temporary files, empties the Recycle Bin, and removes old downloads on a schedule you define. Set it to run weekly or when disk space gets low.
2. Disk Cleanup (Manual)
Start menu → type "Disk Cleanup" → Select drive
# Or run from command line
cleanmgrClick “Clean up system files” to find Windows Update cache, which can consume 2-10 GB or more after a major update. The previous Windows installation (Windows.old folder) can take 10-20 GB if you recently upgraded versions.
3. Find Large Files
Settings → System → Storage → Show more categoriesOr use File Explorer’s search to find space hogs:
- Open This PC
- Type
size: >1GBin the search box - Review and delete unnecessary files, old ISOs, and video files you no longer need
4. Uninstall Unused Apps
Settings → Apps → Installed apps → Sort by sizeUninstall applications you have not used in months. Manufacturers often pre-install bloatware that you will never use. Game installations can take 50-100 GB each.
5. Clear Temp Files
# Run from Start menu
%temp%
# Select all (Ctrl+A) and delete (skip files in use)Also empty the Recycle Bin — deleted files still occupy space until the bin is emptied. Use the Storage Sense option to automate this.
6. Reduce Hibernation File Size
# Run as Administrator
powercfg /h /type reducedThe hibernation file (hiberfil.sys) can be 40-75% of your RAM size. If you do not use Hibernate mode, reducing its size can reclaim several gigabytes.
macOS
1. Storage Management
Apple menu → System Settings → General → StoragemacOS shows a color-coded breakdown of storage usage. Click the “i” button next to each category for specific recommendations.
2. Optimize Storage
- Store in iCloud — keeps recent files locally, older ones in the cloud
- Optimize Storage — removes watched Apple TV shows and movies
- Empty Trash Automatically — deletes items older than 30 days
3. Find Large Files
# In Finder
File → Find → Search: "File size is greater than 100 MB"Or use Terminal for a comprehensive list:
find ~ -type f -size +100M -exec ls -lh {} \; 2>/dev/null | sort -k5 -rh4. Clear System Cache
# Cache files (safe to delete)
rm -rf ~/Library/Caches/*Some apps may run slowly immediately after as they rebuild their caches, but this is temporary and performance normalizes within a day or two.
5. Remove iOS Backups
Old iPhone and iPad backups can consume 10-50 GB. Check:
System Settings → General → Storage → iOS FilesDelete backups of devices you no longer own or use.
Universal Tips
Analyze Disk Usage
| OS | Tool | Description |
|---|---|---|
| Windows | WizTree or WinDirStat | Scans and visualizes disk usage |
| macOS | Disk Inventory X or DaisyDisk | Interactive visual disk analysis |
| Linux | du or ncdu | sudo du -sh /* 2>/dev/null | sort -rh | head -20 |
A disk visualization tool shows exactly which folders and files consume the most space, often revealing unexpected culprits like old Docker images or Xcode simulator caches.
Clean Package Managers
# npm
npm cache clean --force
# pip
pip cache purge
# Docker
docker system prune -a # Removes unused containers, images, networks
# Homebrew (macOS)
brew cleanup -s
# apt (Linux)
sudo apt autoremove # Removes unused dependenciesMove Files to External/Cloud Storage
- Photos and videos — use iCloud, Google Photos, Amazon Photos, or an external drive
- Old projects — archive historical projects to external storage or cloud archive tiers
- Downloads folder — review and clean monthly; this folder is the biggest collection of forgotten files
Compress Old Files
If you need to keep old files but rarely access them, compress them into ZIP archives. Text files, documents, and CSVs can compress to 10-30% of their original size.
What NOT to Delete
System32(Windows) orSystem(macOS) folders — critical system filesLibrary/Application Supporton macOS (contains app data and settings)Program FilesorApplications— always use the proper uninstall process- Unknown system files — research before deleting, especially in root directories
Target Files by Size
| File Type | Typical Size | Where to Find |
|---|---|---|
| Windows Update cache | 2-10 GB | Disk Cleanup → System files |
| macOS Time Machine snapshots | 10-100 GB | Storage Management |
| Browser cache | 500 MB - 2 GB per browser | Browser settings → Clear data |
| Downloads folder | 1-50 GB | User folder |
| Old backups | 10-200 GB | External drives, cloud, iTunes |
| Unused apps | 100 MB - 5 GB each | Settings → Apps |
| Docker images/containers | 1-20 GB | docker system df |
| Node.js node_modules | 100 MB - 500 MB per project | npx npkill to find and delete |
Related: Check our computer speed-up guide and password security tips.
Best Practices and Pro Tips
Over years of experience, practitioners have developed approaches that consistently produce better results. The first is to establish a routine. Consistency matters more than intensity in almost every domain. A modest effort applied regularly outperforms sporadic bursts of intense activity. Set aside dedicated time for your work and protect it from interruptions.
The second best practice is to document everything. Write down what you did, why you did it, what happened, and what you would do differently next time. This documentation becomes invaluable when you encounter similar situations in the future. It also helps you identify patterns in your own work that you might otherwise miss.
The third is to seek feedback early and often. Show your work to others before it is perfect. Early feedback saves enormous rework by catching fundamental issues before you have invested significant effort. It also exposes you to different perspectives and approaches that expand your understanding of the topic.
Building on Your Knowledge
As you become more comfortable with the basics, look for opportunities to deepen your understanding. Teach others what you have learned — teaching forces you to organize your knowledge and identify gaps in your own understanding. Take on projects that stretch your abilities slightly beyond your comfort zone. Challenge yourself to solve problems without immediately looking up the answer.
Connect your new knowledge to related fields. Understanding how different domains relate to each other builds a more complete mental model and reveals insights that isolated study cannot provide. Cross-disciplinary knowledge is increasingly valuable as technology and practices become more interconnected.
Deep Dive: Advanced Concepts
Beyond the fundamentals covered above, mastering this topic requires understanding the interplay between different factors that affect real-world outcomes. The key insight that separates beginners from experienced practitioners is recognizing that best practices must be adapted to individual circumstances. A solution that works perfectly in one context may fail in another due to differences in setup, usage patterns, or environment.
Experience teaches that the most robust approaches are those that account for edge cases. Edge cases — unusual but possible scenarios — are where most failures occur. For example, a backup strategy that works for typical file sizes may fail when encountering millions of small files or a single extremely large database file. A network configuration that handles normal traffic may break under the load of a sudden spike in usage or during a service provider outage.
The Principle of Defense in Depth
Applied to this domain, defense in depth means using multiple overlapping protections so that if one fails, others compensate. This principle originated in military strategy but applies equally to technology systems. No single tool or practice provides complete protection or optimal performance in all situations. Instead, combine complementary approaches: automated tools for routine tasks combined with manual verification for critical operations, redundant systems for essential functions, and regular testing to ensure everything works as expected.
Measuring Success
Establish clear metrics to evaluate whether your approach is working. Quantitative metrics include completion times, error rates, resource usage, and uptime percentages. Qualitative assessments include user satisfaction, ease of maintenance, and how well the system accommodates growth. Track these metrics over time to identify trends and catch problems before they become critical.
Common Pitfalls to Avoid
The most common mistake is overcomplicating the setup. Start simple, verify it works, then add complexity only when needed. The second most common mistake is assuming that what worked for someone else will work for you — your specific combination of hardware, software, usage patterns, and constraints may require a different approach. The third is neglecting maintenance — systems degrade over time without regular attention.
Practical Applications
Apply these concepts by starting with a single improvement, testing it thoroughly, then iterating. Document what you learn and share it with the community. The collective knowledge of practitioners who have solved similar problems is one of the most valuable resources available. Forums, user groups, and documentation all contain solutions to challenges you will encounter.
The field evolves continuously. New tools emerge, best practices change, and your own needs evolve. Stay engaged with the community, read documentation updates, and periodically reassess whether your current approach still serves your needs. The effort invested in continuous learning pays dividends in reduced frustration, better outcomes, and the satisfaction of mastering your craft.
Further Reading and Resources
Beyond this guide, several resources provide deeper exploration of the topics covered. Official documentation for your specific tools remains the most authoritative source. Community forums and discussion boards offer real-world troubleshooting advice and implementation examples. Video tutorials on platforms like YouTube provide visual walkthroughs that complement written guides. Consider subscribing to relevant newsletters, podcasts, or RSS feeds to stay current with developments in the field.
Books and long-form articles provide context that quick online tutorials cannot match. They explore the reasoning behind best practices and the historical development of current approaches. Investing time in comprehensive learning materials builds a foundation that makes it easier to evaluate new tools and techniques as they emerge. The best practitioners combine hands-on experimentation with theoretical understanding, allowing them to adapt their approach as circumstances change.
FAQ
What equipment do I need to get started with this topic? Start with the basics and upgrade as needed. For most people, the standard tools and resources available at little to no cost provide everything needed to begin learning. As your skills and requirements grow, you can invest in more specialized equipment that matches your specific interests. The key is to avoid buying expensive gear before you know what you actually need.
How much time does it take to see meaningful results? Results vary by individual, but most people see meaningful progress within 2-4 weeks of consistent practice. The key is regular engagement rather than marathon sessions. Even 15-30 minutes daily produces better results than several hours once a week. Set realistic expectations and celebrate small improvements along the way rather than comparing yourself to experts.
What is the single biggest mistake beginners make? The most common mistake is trying to do everything at once. Focus on one technique or skill at a time, master it, and then move on. Beginners also tend to compare themselves to experts rather than focusing on their own progress. Everyone starts somewhere, and the people producing polished work have years of practice behind them. Patience and consistency matter more than natural talent.
Where can I find help if I get stuck on a specific problem? Online communities, forums, and local groups are excellent resources. Search for forums related to your specific topic, join relevant subreddits or Discord servers, and check YouTube for visual tutorials. When asking for help, be specific about what you have tried and what is not working. Most communities are welcoming and eager to help newcomers who show initiative and have done basic research first.
How do I stay motivated over the long term? Set specific, achievable goals and track your progress. Join a community of people with similar interests. Share your work and celebrate milestones. Remember that plateaus are normal — progress is rarely linear. When you feel stuck, try a different aspect of the topic or take a short break. The most successful practitioners are those who maintain consistent effort over years, not those who burn out quickly.
When should I upgrade my tools or equipment? Upgrade only when your current tools limit your progress. Many people fall into the trap of buying expensive equipment before developing the skills to use it effectively. A skilled practitioner with basic tools produces better results than a beginner with professional-grade equipment. Invest in learning before investing in gear. When you consistently find yourself limited by your tools rather than your skills, that is the right time to upgrade.
How do I know if I am making progress? Track specific metrics relevant to your goals. Keep a journal of what you learn and practice. Review your work from one month ago and compare it to your current work. Ask for feedback from more experienced practitioners. Progress is often invisible day to day but becomes obvious when you look back over weeks and months. If you feel stuck, ask a mentor or community member to evaluate your current level and provide guidance on next steps.
Related Articles
Docker
Docker Volumes & Persistent Data: Complete Storage Guide
Docker data persistence with volumes, bind mounts, and tmpfs. Named volume management, backup and restore, volume drivers, and Compose production storage patterns.
Interior Design
Entryway and Mudroom Design Guide
Learn entryway and mudroom design — layout strategies, storage solutions, seating, lighting, flooring for high-traffic zones, and creating a functional entry.
Computer
External Storage: SSDs, HDDs, and Cloud Options Guide
A complete guide to choosing and managing external drives — comparing SSDs, HDDs, portable drives, and cloud storage for your specific needs.
Operating Systems
File Systems in Operating Systems: Structure & Design
Guide to file systems: ext4, NTFS, APFS, FAT32; inode structure, allocation methods, journaling, VFS abstraction, and choosing the right filesystem for performance and reliability.
DIY & Home Repair
Hanging Shelves: Installation Guide for Every Wall Type
Learn how to hang shelves — finding studs, choosing anchors for drywall, mounting into tile and brick, leveling, and weight capacity considerations.