In my Windows folder I have 294 folders named $NtUnstallKB******$.
Each folder has 4 to 6 files. The names of the folders and files are
all blue. There is a txt file in each folder but when I open it with
notepad it is blank.
What are these and can I safely delete them? They are taking up 1.2
Gb of disk space. My guess is they are to uninstall windows updates, to
delete them would mean I could not remove the update.
Your guess is exactly right.
Let’s look at what you’re looking at, and I’ll describe the safe
approach to dealing with this.
Become a Patron of Ask Leo! and go ad-free!
If you open Windows Explorer on your Windows Directory (typically
C:\Windows), you may see the folders mentioned in our question:
(You will need to have “View hidden files and folders” enabled in
Windows Explorer’s options to be able to see these folders.)
information for various patches and updates.”
They’re colored in Blue because the files within the folders are
compressed to save space.
The names indicate what they are: uninstall information for various
patches and updates. Most are named including a “KB number” which is
the Microsoft Knowledgebase number that describes the patch that they
are related to.
Yes, except for $hf_mig$, you can delete them. ($hf_mig$ is apparently used for coordination by future patches.) As you mention, the “cost” is that you
will no longer be able to uninstall the corresponding patch. For most
of us that’s not really a big deal. In fact, just quite coincidently, I
did exactly this earlier today on one of my machines that was running
low on disk space on it’s C: drive.
However, as you might expect, sometimes just blindly deleting things
doesn’t always end up with what you might expect. Sometimes we make
mistakes, and sometimes down the road we might wish we hadn’t deleted them.
Two suggestions for you:
Take a full system backup that you plan to keep prior to deleting
the folders. In particular, this can save your bacon should you happen
to accidentally delete something you didn’t intend to. Keep the backup
image so that should you ever need these folders and files again you
can recover them from the backup.
Copy these folders to somewhere else manually first. Perhaps copy them to
another system, or another disk with more room, or burn them to a CD or
DVD. Once again the goal here is to feel confident that should you need
to replace the folders and files, you can because you kept a copy.
In general, I actually advise that you leave these folders alone
unless you have a reason to remove them. They don’t impact system
performance, and the ability to uninstall a patch has come in handy for
some folks from time to time. If you find that you’re running low on
disk space on the drive housing Windows, then yes, these are on the
list of things to consider removing.
Removing safely by copying them elsewhere first, that is.