Solved

Removing Files from WINDOWS Directory

Posted on 2011-03-09
17
992 Views
Last Modified: 2012-05-11
I am on Windows 2003 Server

My C Drive tends to be getting filled up. I have a folder in the C Drive \ WINDOWS folder, of which consumes about 1GB or more.

The folder is : C:\WINDOWS\$hf_mig$
In this folder has got many KB folders. Can this be deleted?

What else can I delete from the WINDOWS Folder.

I noticed in the Windows Folder, there are many $uninstall$ directories, which are blue in color. Can this be deleted.

What files can I actually delete from the Windows folder to make up space.

I know further disk space is needed, but at this point, what can I delete to create space?
0
Comment
Question by:ben1211
  • 6
  • 5
  • 3
  • +3
17 Comments
 
LVL 2

Expert Comment

by:sihar86
Comment Utility
File that used as temporary file are file that usually deleted.
Ex:document file(office file), internet files.
There is third party application that can remove temporary files
but sometime remove the neccessary file by windows.
Safer way to remove this is:
right click of your drive-> choose properties -> in tab general click button "disk cleanup"
0
 
LVL 11

Expert Comment

by:Plantwiz
Comment Utility
You likely can delete zipped files that you have unzipped.  It's double (well, not quite) but storing the same info twice and once the zipped folder is unzipped, the zipped file can be removed as you have all the contents unpackaged.

Look for programs you haven't used in a while (3 months, 6 months or a year...you decide) and uninstall of those real old apps you don't use.  You likely can re-download at a later date if needed.
0
 
LVL 7

Expert Comment

by:enzogoy
Comment Utility
a 1GB Windows folder is not big.  Trust me, not at all.  I rather to look else where to clean up the drive NOT Windows folder.  One mistake would cause you headache.  You only touch that folder if you know what you are doing.

Documents and Settings << this is the folder I will look into first.  Delete all the users which doesn't need to be there.  Clean up the Recycle bin.

the next one is all junk folders on the C: like application installation file.  After the installation, you forget to remove them, this is a good time to clean them up.

The last one is uninstall application which not needed anymore then get into Programs folder to delete them too.

Think twice if you plan to delete anything under WINDOWS folder.

enz
0
 
LVL 95

Accepted Solution

by:
Lee W, MVP earned 450 total points
Comment Utility
C:\WINDOWS\$hf_mig$ should NOT be deleted.

If you need disk space, review what is actually using the space (filling you up periodically) and configure appropriately.  Please see my guide to boot drive size on 2003 which includes over 20 things to look at as possible resolutions for your space issues - http://www.lwcomputing.com/tips/static/bootdrivesize.asp
0
 

Assisted Solution

by:guyinwonder
guyinwonder earned 50 total points
Comment Utility
The easiest way to get more space with safe deletion is using Disk clean up tools from the windows.

did you know that cleaning the recycle bin , also can gain you hd space ? especially if you just recently delete big files.

and then off course you you can always delete old files that you didn't used anymore. or make it to zip .

temporary files from installer and Internet also can gain space if you delete them often .

all of that can be done in one move . .disk clean up tools from the system.
0
 

Author Comment

by:ben1211
Comment Utility
leew, the $hf_mig$  consist of KB directories. Why can't we delete these directories?

What about the uninstall directories in Windows that are colored blue?

Please advise.
0
 

Author Comment

by:ben1211
Comment Utility
what happens if these files are deleted? from the $hf_mig$ folder?
0
 
LVL 95

Assisted Solution

by:Lee W, MVP
Lee W, MVP earned 450 total points
Comment Utility
As per http://blog.ryantadams.com/2008/02/21/what-is-hf_mig-and-can-i-delete-it/ “When a security update, critical update, update, update rollup, driver, or feature pack installs GDR version files, the hotfix files are also copied to the %windir%\$hf_mig$ folder. This supports migration to the appropriate files if you later install a hotfix or service pack that includes earlier versions of these files.”

> What about the uninstall directories in Windows that are colored blue?
Please read the link I provided - I answered this in that question
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:ben1211
Comment Utility
which link Leew?  this? http://www.lwcomputing.com/tips/static/bootdrivesize.asp

I need to know if these folders can be deleted or not. And if they are deleted, what is the impact?

Please let me know.
0
 
LVL 95

Expert Comment

by:Lee W, MVP
Comment Utility
Yes, that link - what don't you understand about it?
0
 

Author Comment

by:ben1211
Comment Utility
Leew, with regards to the $uninstall$ directories located in the Windows folder. I saw the link that you provided http://blog.ryantadams.com/2008/02/21/what-is-hf_mig-and-can-i-delete-it/ and then clicked on another link from that you sent me.

This link http://blog.ryantadams.com/2008/02/21/removing-ntservicepackuninstall-and-other-update-related-folders/
tells me that I could delete the $uninstall$ directories (blue in color)

If you ever wanted to remove an update (which can be done with Windows’ Add/Remove Programs feature), these folders would be used. However, if you don’t plan to uninstall any updates (99% of the time you never will need to), you can recover some disk space by removing those folders. You can delete any of the folders that start and end with a “$”, except for “$hf_mig$”. Depending on the number of updates you have installed, deleting these folders can save between one and several hundred megabytes worth of space.

So this means I could delete the $uninstall$ blue folders right?
0
 

Author Comment

by:ben1211
Comment Utility
with regards to the folder “$hf_mig$. If the files in here are deleted....will this only affect server migration? Assuming these directories are deleted from this “$hf_mig$ folder, and the server were to be rebooted, would this cause a problem?
0
 
LVL 95

Assisted Solution

by:Lee W, MVP
Lee W, MVP earned 450 total points
Comment Utility
Is there a reason you're relentlessly focusing on $HF_MIG$ and ignoring the 20 other places that are potentially using space?  Is there a reason you're not actually reading over the link I posted - specifically http://www.lwcomputing.com/tips/static/bootdrivesize.asp ? Your question is answered in that link in the section aptly titled "Remove Old NTUninstall Folders" and begins with When a Windows Update is applied, Windows creates a backup of the files and registry entries that were changed so that, if necessary, the update can be removed.

Should I copy and paste the ENTIRE PAGE here? I wrote that page so that I wouldn't have to clutter up questions with the same long list of options over and over....
0
 

Assisted Solution

by:guyinwonder
guyinwonder earned 50 total points
Comment Utility
ben1211:
check out this link hope it is clear enough for the impact..

This link
0
 
LVL 95

Expert Comment

by:Lee W, MVP
Comment Utility
"This Link" basically says the same thing I do.
0
 

Expert Comment

by:guyinwonder
Comment Utility
Leew: yes  it does ..  :) well lets hope that Ben1211 got the cloud away from his problem now  :D
0
 

Author Comment

by:ben1211
Comment Utility
yes that link cleared my doubts.

So basically there's nothing else i can really delete to save on space?

I would then have to post another question as to how to I migrate the OS C Drive to a new server with a larger hard disk capacity.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
Introduction: I have always been a big fan of Windows but my liking towards it is slowly being eroded by the variety of other Applications that I encounter, when I browse the Web. Most of the software available is free and maybe Open Source too. …
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now