How to delete temp files in Windows Server 2012 r2?

Summary

Is your c drive full with useless files? This page is about how to delete temp files and clean up c drive space in Windows server 2012 r2.

Andrew Wright

Updated on Sept 14, 2022

by Andrew Wright

Follow @IM-Magic

How to delete temp files windows server 2012 r2 (May only save up to several GB space)

Understanding how to delete temp files windows server 2012 r2 is actually a very good skill. It can do wonders and the best part is that you can adjust and adapt it to suit your needs. It’s never going to be a simple fit, all you have to do is to figure out the right approach and then use it to get the best outcome. What you will like about learning how to delete temp files windows server 2012 r2 is that there are multiple solutions.

However, based on how you use the Windows Server, you might be able or might not be able to delete those files especially if they are in use. It really is a system that you have to check out beforehand if you want to avoid any sign of problems to begin with.

Then you can also extend your c drive to solve this problem easily.

Way 1: Delete temp files in Disk Cleanup for any drive like C

  • 1, Open your computer, Right click C drive in THIS PC ->Go to option 'Properties'
  • 2, Click on Disk Cleanup in the property tab options
  • 3, Click the suggested columns (in the above image) to clean and free up c drive space

disk clean up

Way 2: Run cleanmgr in cmd with admin privileges

  • Step1 - Press Windows + R on your keyboard, type cleanmgr and press Enter.
  • Step2 - Select C: (or other) drive in the drop-down list and click OK.

Select drive

Does Disk Cleanup work?

Most of the time Disk Cleanup should work. However, in the case of Windows Server 2012 your files will be under use most of the time. So it really is a necessity to figure out how to remove these files without Disk Cleanup. It might be a bit of a hassle to begin with, but in the end it will be well worth it, so you really have to adjust and adapt all of that to suit your needs adequately for the best results. It’s a good idea to not rely on Disk Cleanup just to be safe, as this is not the ultimate solution you are looking for.

Note: Deleting temp files or disk cleanup may only save several GB disk space for your computer, if you want to extend c drive with more space, IM-Magic Partition Resizer Server can help redistribute unlimited GB from another drive(or unallocated space) to c drive.

Move the Pagefile.sys to a different partition(Save space from MB to Several GB)

If you do that, you will notice that the pagefile will not allow the creation of new temp files for a while and then you can delete the old ones. It’s a very good thing to consider that, as in the end it will be more than ok. Here are the steps to get the PAGE File location changed from C to another drive.

  • 1, Start Run -> Settings
  • 2, About ->Advanced System Settings
  • 3, System Properties -> Performance -> Settings
  • 4, Performance Options -> Advanced -> Change
  • 5, Virutal Memory -> No paging file -> Set

Click YES on popup message box to confirm disabling the paging file.Select another drive for page file from c to another drive

Or you may set D drive to save the page file from c drive.

Video - how to change page file from c drive to another drive

How to extend c drive windows server 2012 r2 to get it extended with 100GB or more?

The most direct solution is to resize the partitions to spare more space for your c drive. You can use partition manage software to make it. Both IM-Magic Partition Resizer server edition and unlimited edition are a great tool that you can use in order to solve this issue. You can extend c drive on Windows Server 2012 R2 without any problem with these tips:download free windows 10 partition software

Install IM-Magic Partition Resizer version

Make sure that you right click on the large volume to shrink some space for c drive.resize partition

Adjust the slider to resize your partition a little bit by shrinking.

Steps to resize your disk partitionresize partition on server 2012 r2 without data loss

Move partitions in between to move the unallocated space close to c driveright click server c drive to extendextend volume

Extend c drive in Partition Resizer Server.

Video Tutorial to Resize Partitions with Partition Tool

Using IM-Magic Partition Resizer Server edition and IM-Magic Partition Resizer unlimited edition for this task is very simple and convenient. You get to have some amazing results all the time, and all you need to do is to download the app now. This just makes the process easier and more convenient, and in the end you will have no problem dealing with the temp files properly.

Related Product