It is very common that C drive runs out of space in Windows Server 2016/2019 and previous versions. In this situation, you may try to reclaim disk space without replacing with new disk. This article shows how to free up disk space in Windows Server 2016 with native Disk Cleanup utility and additional 4 ways. If you still cannot get plenty of free space, you can add more free space to C drive from other data partitions without losing data.
Free up disk space with Server 2016 Disk Cleanup utility
To free up disk space in Windows Server 2016, the first choice is Windows native Disk Cleanup utility. Although there are many disk cleanup and optimization software, Windows Disk Cleanup is recommended, because it is safe and able to clear up many types of junk files. Nobody likes to put the server in danger for additional 1GB free space. Of course, if you have your own familiar and trustable cleanup software, you may ignore this step.
Steps to free up disk space in Windows Server 2016 with Disk Cleanup:
- Press Windows and E together to open File Explorer, right click C: drive and select Properties.
- Click Disk Cleanup in the pop-up window.
- Wait Disk Cleanup to scan the files that can be removed safely. (The time depends on server performance and the amount of junk files.)
- Click the check-boxes in front of the files that you want to delete and then click OK. (If you don't know what the files are, click it and you'll see corresponding description on the bottom.)
- Click Delete Files in the pop-up window to confirm and start deleting.
If you like to use command line, refer how to run Disk Cleanup from cmd.
To the servers that never or have not free up disk space for a long time, Disk Cleanup may help you reclaim several GBs of disk space. If you cannot get plenty of free space, continue the additional 4 methods to reclaim disk space and expand C drive by taking space from other partitions.
Additional 4 ways to free up disk space in Server 2016
1. Decrease Recycle Bin
All files that deleted by pressing DEL without SHIFT key will go to Recycle Bin, where you can revert these files to original location manually if you deleted them by mistake. Recycle Bin use part of space of C drive by default, so more files in Recycle Bin means less free space in C drive.
You can decrease the size and change the location of Recycle Bin to other larger partition.
- Right click Recycle Bin.
- Select the drive for Recycle Bin.
- Select Customer size and enter an amount, click OK to confirm.
2. Reset Page File
Page file uses part of disk space as virtual RAM and it is located in C drive by default, too. You can change it to other partition when C drive is getting full. Steps:
- Press Windows and R to open Run, type sysdm.cpl ,3 and press Enter.
- Click Settings under Performance on top of System Properties window.
- In the Performance Options window, switch to Advanced tab and click Change below Virtual memory.
- Uncheck Automatically manage paging file, then click C: drive > No paging file > Set. And then click D or other drive > Custom size > Enter an amount > Set. Click OK to confirm. (It may requires reboot to take affect.)
3. Delete Shadow Copies
If you enabled Shadow Copy, you can delete the previous copes.
- Open Window File Explorer
- Right click C drive > click Properties > switch to Shadow Copies.
- Select the previous copies and click Delete Now.
4. Uninstall programs
Press Windows and X on the keyboard > Programs and Features, uninstall the programs that you no longer need.
To most of servers, administrators can only get several GBs free space, it is not enough even if you get over 10GB. Free disk space will be eaten up by new generated junk files, this is the reason why many people feedback that C drive becomes full again in a short time.
To completely solve this problem, you'd better expand C drive to larger size. It is similar with a smart phone: if you use a 16GB device, you have to delete files and clean up very frequently, but you won't encounter this problem for a long time if you use a 128GB or 256GB device.
Add more free space to C drive from other volume
If there's free unused space in other volumes on the same disk, you can shrink it to get Unallocated space and then add into system C drive. Operating System, programs and anything else keep the same with before.
The steps are the same no matter you use physical disk, any types of hardware RAID arrays or virtual disk in VMware/Hyper-V virtual machine.
To extend system C drive on Windows Server 2016, there are many choices in the market, but you'd better back up first and run safe partition software, because there is potential system damage and data loss risk. Better than other tools, NIUBI Partition Editor has innovative technologies to protect system and data:
- Virtual Mode - all operations will be listed as pending for preview, real disk partitions won't be changed until click Apply to confirm.
- Cancel-at-well - if you applied incorrect operations, it doesn't matter, you can cancel the ongoing operations without causing damage.
- 1-Second Rollback - if anything goes wrong, it automatically reverts server to original status in a flash. If it happens, your server could back online rapidly without damage.
- It is 30% to 300% faster because of the advanced file-moving algorithm.
To free up disk space in Windows Server 2016, you may use either Windows native Disk Cleanup or third party software. But in most cases, you can't get large amount of free space. If you cannot get over 10GB free space, you'd better add more from other volume with NIUBI Partition Editor. Besides shrinking and extending partition, it helps move, merge, copy, convert, defrag, hide, wipe partition, scan bad sectors and much more.