This website use cookies to help you have a superior and more admissible browsing experience on the website.
Loading...
Space reclamation means recovering storage that the system no longer uses but hasn’t yet freed up. In virtualization and enterprise storage environments, especially with VMware, thin provisioning, SANs, and SSDs, it usually means the system detects deleted or unused blocks and returns them to the storage pool.
Deleting a file or database record doesn’t always release physical storage, and the system often marks that space as “available” without shrinking anything on disk.
A 100 GB database might hold only 60 GB of actual data but still take up the full 100 GB on disk. True space reclamation goes a step further: it consolidates data and shrinks those containers, returning unused capacity to the operating system or storage pool.
Managing storage on your local machine is often the first place to start. Whether you’re on a desktop or a server, a mix of built-in tools and manual cleanup can go a long way toward freeing up disk space on Windows, macOS, and Linux.
Whether you’re trying to free up disk space on Windows 10 or Windows 11, the built-in tools below cover most of what you need.
%temp%, and press Enter. Select all and delete.powercfg -h off. This removes the hiberfil.sys file, which can be several gigabytes in size.macOS has solid built-in tools for reviewing storage usage and offloading data you don’t need on hand.
~/Library/Caches. Delete folders for apps you no longer use.On Linux, a few targeted commands can recover a surprising amount of disk space with minimal effort.
df -h: shows disk usage for all mounted filesystems in a readable format.du -sh /*: shows the total size of each top-level directory.ncdu: an interactive terminal-based disk analyzer; install it via your package manager.sudo apt clean && sudo apt autoremovesudo dnf clean allsudo pacman -Scsudo journalctl --vacuum-size=200M to trim them down.find / -type f -size +500M to locate individual files over 500 MB.Deleting data in a database doesn’t automatically shrink the files on disk. Most database engines hold onto that freed space internally, leaving behind empty gaps where deleted rows used to be, rather than returning it to the operating system. Recovering that space requires an extra step beyond a simple DELETE.
When using the InnoDB engine, MySQL does not shrink its data files (.ibd or ibdata1) after a DELETE. The space is marked as reusable but stays allocated on disk.
OPTIMIZE TABLE table_name to rebuild the table and recover fragmented space. innodb_file_per_table is enabled. This gives each table its own .ibd file, which makes space recovery much more straightforward when a table is truncated or dropped.PURGE BINARY LOGS BEFORE 'date' to remove logs that are no longer needed for replication or recovery.SHOW TABLE STATUS to identify large tables. Move historical data to cold storage first. This makes the optimization more effective and keeps your active dataset lean. Before archiving, it’s worth ensuring you have a reliable way to back up your MySQL database in case anything goes wrong during the process.PostgreSQL uses a concurrency model called MVCC (Multi-Version Concurrency Control). When a row is updated or deleted, the old version stays on disk as a “dead tuple” until it’s explicitly cleaned up.
VACUUM clears dead tuples and makes that space available for reuse within the same table. It does not return space to the operating system.VACUUM FULL to actually shrink the table file on disk. It rewrites the table without the gaps. ANALYZE to refresh the query planner’s statistics. This helps the database make better decisions about how to run queries on the updated data.autovacuum_vacuum_scale_factor settings. For large tables, the defaults may not trigger cleanup frequently enough, letting dead tuples accumulate over time.Enterprise databases follow the same principle — deleted data doesn’t automatically free up disk space — but the tools and procedures differ by platform.
DBCC SHRINKFILE to reduce the size of a database file. Use it sparingly, though; frequent shrinking can cause index fragmentation and hurt query performance. Rebuilding indexes is often a better first step to reduce internal bloat.DBMS_SPACE.UNUSED_SPACE to identify where storage is being wasted. Then run ALTER TABLE ... MOVE followed by ALTER INDEX ... REBUILD to consolidate data and shrink the segments.In cloud environments, storage costs scale directly with how much data you keep. Managing that cost goes beyond manual deletion, as it means setting up automated policies to move, expire, or remove data across storage tiers before the bill grows.
All three major cloud providers offer lifecycle tools to automate how long data stays in each storage tier and when it gets removed.
Storage cleanup done wrong can cause data loss or performance issues. These practices help you stay safe and get the most out of every cleanup effort.
DELETE command in a database doesn’t free physical disk space. Always follow up with VACUUM FULL in PostgreSQL or OPTIMIZE TABLE in MySQL to return that capacity to the OS.The cleanup methods covered in this guide like shrinking database files, clearing system logs, and removing cloud objects, can be difficult or impossible to reverse. Before running any of them, you need to know your data is backed up.
For individual machines or small setups, a manual backup may be enough. But in enterprise environments spanning multiple operating systems, databases, and cloud platforms, managing backups manually across every layer quickly becomes unworkable. That’s where a dedicated solution like i2Backup comes in.
i2Backup is an enterprise backup platform built to protect the full range of workloads you’ve been managing throughout this guide — from physical servers and VMs to databases and cloud storage.
VACUUM FULL or OPTIMIZE TABLE to actually free space, backup storage needs active management too. i2Backup lets you define retention rules so that outdated backups are deleted automatically, so no manual intervention is needed.OPTIMIZE TABLE or DBCC SHRINKFILE with confidence knowing an accurate restore point exists.Space reclamation is a necessary part of storage management, but it carries real risk, especially at the database and system level. A reliable backup ensures that if anything goes wrong, recovery is measured in minutes, not days.
Q1: What does reclaiming space mean?
Reclaiming space means recovering storage that’s still allocated on disk even after data has been deleted. Deleting files or database records alone isn’t always enough — additional steps like emptying the Recycle Bin, running VACUUM FULL, or setting cloud lifecycle policies are needed to fully release that space.
Q2: How do I free up disk space on my computer without spending money?
All the tools you need are already built in. On Windows, use Storage Sense or Disk Cleanup. On macOS, go to System Settings > General > Storage. On Linux, run sudo apt clean && sudo apt autoremove to start. No paid software required.
Q3: Is it a good idea to run Disk Cleanup?
Yes. It safely removes temporary files, old update files, and system logs that serve no ongoing purpose. Run Clean up system files for a deeper clean. Just keep in mind it only covers the OS layer, and databases and cloud storage need separate attention.
Q4: What is the best thing to delete to free up storage?
Start with temporary files, old system updates, and unused applications — these are large, low-risk, and easy to remove. In databases, archive old data before optimizing. In cloud storage, look for outdated backups and incomplete uploads first.
Reclaiming storage space is a multi-layer process. Emptying the Recycle Bin handles the basics, but database files, cloud buckets, and system logs each require their own cleanup approach, as covered throughout this guide.
The key is to make it a routine rather than a one-time fix. Set up lifecycle policies for cloud storage, schedule database optimization quarterly, and run OS cleanup monthly. And before any major reclamation task, make sure your data is backed up first.
For teams managing complex environments across multiple platforms, Info2soft’s i2Backup provides the automated protection layer that makes cleanup safe to run at any scale.