How to Free Up Disk Space in Windows Server 2019

by James, Updated on: June 9, 2026

Similar to legacy Windows releases, the primary partition in Windows Server 2019 frequently runs out of disk space. While managing data drives allocated for backups or projects is relatively straightforward, resolving capacity issues on the system C drive is considerably more complex. This guide demonstrates how to free up disk space in Windows Server 2019 by using native utilities to clean up disk clutter and eliminate redundant files. If these maintenance methods do not reclaim sufficient capacity, expanding the system volume by allocating free space from alternative partitions remains the recommended solution.

Run Windows Server 2019 Disk Cleanup utility

Consistent with previous releases, Windows Server 2019 includes the native Disk Cleanup utility to help administrators free up disk space effectively. This built-in tool scans the system volume to identify and eliminate redundant temporary files and system logs safely. Retaining a familiar interface and straightforward workflow across multiple operating system generations, this utility provides a fast, reliable, and inherently secure method to clean up disk drives without compromising system stability.

Step-by-step guide to free up disk space in Windows Server 2019:

  1. Press the Windows key + R simultaneously on your keyboard, type cleanmgr, and press Enter.
  2. Select the C drive from the drop-down menu and click OK.
  3. Select the checkboxes next to the specific file categories you wish to eliminate.
  4. Click OK to authorize the utility to safely clean up disk clutter and delete redundant files.

To streamline future maintenance and avoid selecting categories manually, you can follow these instructions to clean up disk storage automatically via the command line.

Select files

On a newly deployed server, the volume of reclaimable storage is typically minimal due to the lack of accumulated temporary files. In contrast, production systems that have operated for extended periods without maintenance often store massive amounts of redundant data. Running a targeted routine to clean up disk clutter on these servers will free up disk space significantly, frequently recovering tens of gigabytes. If you are unable to reclaim at least 20 GB of storage capacity through this utility, consider implementing the additional optimization methods detailed below.

Additional options to free up disk space in Windows Server 2019

1. Delete Shadow Copies

If Volume Shadow Copy is enabled on your system, removing outdated snapshots is an excellent way to free up disk space. To safely delete these older versions and recover storage capacity, follow the steps below:

  1. Open Windows File Explorer.
  2. Right-click the C drive, select "Properties," and switch to the "Shadow Copies" tab.
  3. Select the previous backup copies from the listed entries and click "Delete Now" to clean up disk bloat.

Delete shadow copies

2. Reset Recycle Bin

By default, files deleted using the standard delete command are temporarily moved to the Recycle Bin, allowing for manual restoration if necessary. Because the Recycle Bin allocates a specific percentage of the C drive's capacity by default, an accumulation of deleted items will gradually decrease available storage. Periodically purging these accumulated files is an excellent habit to clean up disk clutter and maintain optimal server performance.

To prevent the system volume from running low on storage, you can reduce the maximum space allocation or reconfigure the retention settings for different partitions:

  1. Right-click the Recycle Bin icon on your desktop and select "Properties."
  2. Select the specific drive volume from the listed storage locations.
  3. Choose the "Custom size" option and enter a lower maximum capacity in megabytes, or opt to bypass the bin entirely to free up disk space immediately upon deletion.

Reset recycle bin

3. Reset Page file

The page file (pagefile.sys) acts as secondary virtual memory and is stored on the C drive by default. Relocating this file to an alternative partition is an effective way to free up disk space when the system volume experiences low storage capacity. Follow these procedural steps to modify the configuration:

  1. Press the Windows key + R on your keyboard to open the Run dialog box, type sysdm.cpl, and press Enter.
  2. In the System Properties window, navigate to the Advanced tab and click Settings under the Performance section.
  3. Switch to the Advanced tab within the newly opened Performance Options window, then click Change under the Virtual memory section.
  4. Clear the checkbox for "Automatically manage paging file size for all drives" located at the top of the interface.
  5. Select the D drive (or an alternative available volume), choose the "Custom size" option, input your preferred Initial and Maximum size values in megabytes, and then click Set.
  6. Select the C drive, opt for the "No paging file" radio button, and click Set to clean up disk overhead on the primary partition.
  7. Click OK across the open configuration windows to confirm. A system reboot is required for these modifications to take effect.

Page file

4. Uninstall unnecessary applications

Removing unused or redundant software is a highly straightforward approach to clean up disk storage and reclaim capacity. This includes applications that are no longer required or programs preinstalled by the manufacturer during initial deployment.

  1. Open the Settings menu.
  2. Navigate to Apps > Apps & features.
  3. Select the specific applications you want to remove from the list and click Uninstall.

5. Relocate new content storage paths

To prevent future data accumulation from crowding the system volume, you can modify the default save directories for applications, documents, media, and downloads, ensuring these file categories target alternative data partitions automatically.

  1. Open the Settings menu.
  2. Navigate to System > Storage.
  3. Under the "More storage settings" section, click Change where new content is saved.
  4. Use the drop-down menus to assign alternative partition locations for each data category.

6. Reconfigure application output directories

By default, most software installations and system processes export their data directly to the system volume. Heavy database workloads, virtual machines, video rendering projects, and native Windows services generate massive temporary exports, making it essential to redirect default output paths to high-capacity auxiliary drives to free up disk space effectively.

7. Enable and configure Storage Sense

The Storage Sense feature acts as an automated maintenance utility to free up disk space continuously when system volumes encounter low storage thresholds. It runs in the background to automatically purge temporary setups, empty the Recycle Bin, and clear stale system logs.

  1. Open the Settings menu.
  2. Go to System > Storage.
  3. Locate the Storage Sense toggle on the configuration panel and switch it from Off to On.

Allocate additional capacity from alternate partitions

While numerous maintenance workarounds exist online for basic environment tuning, executing a minor data purge rarely yields enough storage to resolve long-term structural constraints. To permanently protect the system drive from recurring capacity issues, the most decisive solution is safely migrating unused capacity from alternative volumes on the same physical drive.

Although disk partitions are already allocated, you can easily change partition size configurations without experiencing data loss. Utilizing reliable storage software allows you to safely shrink a large partition and generate newly reclaimed unallocated space on the same physical drive. This allows you to add unallocated space to the C drive, restoring ample storage capacity while keeping the operating system and applications entirely intact.

Download NIUBI Partition Editor and watch the step-by-step video tutorial below to modify your drive configuration:

Video Server 2019

  • The utility operates in Virtual Mode first; real disk configurations will not be modified until you click Apply to confirm the pending operations.
  • If your server utilizes hardware RAID arrays, do not break the array configuration or modify the RAID controller; simply follow the standard steps demonstrated in the video.
  • If the physical disk is completely full, you can clone the disk to a larger drive and expand the C drive using the extra capacity.

Beyond resizing operations, NIUBI Partition Editor provides an extensive suite of advanced disk and partition management capabilities to optimize your server environment.

Download