Is your C drive full of unnecessary files? This page explains how to delete temp files and free up space on the C drive in Windows Server 2012 R2.
Learning how to delete temp files in Windows Server 2012 R2 is a valuable skill. It can make a significant difference in freeing up space, and the best part is you can customize it to meet your needs. While there's no one-size-fits-all solution, finding the right approach can yield great results. The advantage of learning how to delete temp files is that there are multiple methods available.
However, depending on how the server is used, you may or may not be able to delete certain files, especially if they are in use. It’s important to check beforehand to avoid any potential issues.
If you continue to experience space issues, you can also extend your C drive to resolve the problem more easily.
Way 1: Delete Temp Files Using Disk Cleanup (Applicable for Any Drive, Including C)
Is Disk Cleanup not installed on Server 2012? Follow these steps to enable it:
C:\Windows\System32
and locate cleanmgr.exe
to launch Disk Cleanup.Also read: How to Enable Disk Cleanup in Server 2012
Way 2: Run cleanmgr in CMD with Admin Privileges
Also read: How to Run Disk Cleanup for Server 2012
Most of the time, Disk Cleanup should work. However, in the case of Windows Server 2012, your files are often in use, which can prevent certain files from being cleaned. Therefore, it’s important to understand how to remove these files manually if necessary. While it may be a bit of a hassle at first, it’s worth the effort to learn how to manage temp files more efficiently. It’s a good idea not to rely solely on Disk Cleanup, as it may not always provide the best solution for freeing up space.
Note: Deleting temp files or using Disk Cleanup may only free up several GB of disk space. If you need more space on your C drive, IM-Magic Partition Resizer Server can help redistribute unlimited GB from another drive (or unallocated space) to your C drive.
If you move the pagefile, you will notice that it prevents the creation of new temp files for a while, allowing you to delete the old ones. This is a great way to free up space. Here are the steps to change the PAGE file location from the C drive to another drive:
Click YES in the pop-up message box to confirm disabling the paging file.
You can also choose to move the pagefile to the D drive instead of disabling it entirely.
Video: How to change the pagefile location from the C drive to another drive:
The most direct solution is to resize the partitions to allocate more space to your C drive. You can use partition management software for this task. Both the IM-Magic Partition Resizer Server edition and the Unlimited edition are excellent tools for extending the C drive in Windows Server 2012 R2. Here are the steps:
After following these steps, your C drive should now have more space, potentially adding 100 GB or more, depending on how much space you freed up from the other partition. This method is safe and easy to perform without data loss, making it an ideal choice for extending your C drive.
For detailed instructions and troubleshooting, you can watch the video tutorial below:
Using IM-Magic Partition Resizer Server edition and IM-Magic Partition Resizer Unlimited edition for this task is simple and convenient. You will get excellent results, and all you need to do is download the app now. It makes the process easier, and you won't have any problems handling temp files properly.
Also read: How to Extend the C Drive for Windows Server 2012