How to Uninstall and Reinstall Windows Updates
Even though installing updates in Windows is an easy process, the mechanism in the background that manages it all is fairly complicated. There is also a lot of misinformation on the Internet about how to deal with problems relating to Windows Update.
One of the biggest misconceptions is that all Windows updates can be installed at once by simply deleting theSoftwareDistributionfolder stored inC:\Windows. This is completely wrong. Yes, you might save some space (anywhere from 500 MB to several GB’s), but deleting the folder will not remove any installed update.
In addition it’s a bad idea to delete the SoftwareDistribution folder unless it is absolutely required. There is a subfolder called DataStore that has a large database of all the Windows Updates available. This database will probably be a couple of hundred MBs in size. Deleting this database simply removes the Windows Update history for the computer.
To prove this to myself, I did a test. I openedControl Panel, clicked onWindows Updateand then clicked onView Update Historyin the left hand menu.
This screen just gives you a full list of installed updates with theStatus,ImportanceandDate Installed. When we delete the SoftwareDistribution folder, this dialog will be completely empty as if you have never installed any updates. Before I show you that, click on theInstalled Updateslink at the top where it tells you how to remove an update.
As you can see, I have a couple of hundreds updates currently installed for Office, Windows, Silverlight, etc. Now if you follow the instructions below for deleting the folder, you can go back toView Update Historydialog and you will see it’s now empty.
However, if you click onInstalled Updatesagain, you will see that all the updates that were listed before and still listed there. This is because we simply deleted the log history of the updates and not the actual updates.
This dialog is where you can actually uninstall an update, but only one at a time. Simply click on an update and then clickUninstall. Unfortunately, there is no way to remove all updates at once unless you use System Restore.
If you use System Restore and restore the computer to a previous restore point, any updates that were installed after that restore point will be gone. To remove all updates, though, you would need a restore point created right after the OS was installed. Even if a restore point was created at that point, older ones normally get deleted over time to make space for newer restore points.
Still, if you have a lot of space allocated to System Restore, you might be able to roll back a couple months worth of updates at once.
Once you delete the contents of the folder, you will need to revisit Windows Update via Control Panel and check for updates. The entire database will be built from scratch and you may notice that Windows showsChecking for updatesfor a very long time. This is because a list of every update applicable to the OS has to be downloaded again and then compared to the updates currently installed on the system.
Delete SoftwareDistribution Folder
In order to remove this folder, you first have to stop theWindows UpdateandBITSservices in Windows. To do this, click onStartand type inservices.mscinto the search box.
Next, right-click on theWindows Updateservice and click onStop. Do the same thing for theBackground Intelligent Transfer Service (BITS)service too.
Now navigate to the following folder shown below and you will see several folders listed there. The main ones that we will talk about areDownloadsandDataStore.
C:\Windows\SoftwareDistribution
If you are trying to regain hard drive space only, then you should only delete the contents of theDownloadfolder, though in theory this should not really be necessary. The Download folder actually holds all the updates that have been downloaded, but not yet installed. Once they are installed, the updates are removed within 10 days. So theoretically, that folder should shrink in size soon after you have installed all the Windows updates.
TheDataStorefolder contains the database with the full Windows update history for the computer. Once it is deleted, the update history dialog will be blank like I had shown above, but all your updates will still remain. You should really never delete the DataStore folder unless you are told to do so or if Windows Update is completely corrupt and misconfigured.
Note that you may not be able to delete certain folders and the ReportingEvents file. In the case where you can’t delete a folder, just open the folder and delete all the contents inside. For me, I got an error when trying to delete the DataStore folder, so I just went inside the folder and deleted the database file and all the other files in the folder.
Check for Windows Updates
If you did remove the SoftwareDistribution folder, you will want to go to Windows Update again to check for updates. It will show that you have never perform a check for updates since the update history is now gone.
Click theCheck for updatesbutton and be prepared to wait a while as the database is being recreated.
Conclusion
So the main point here is that you cannot really get rid of all Windows Updates at once unless you have a really old restore point saved on the system. Secondly, you should only delete theDownloadsfolder in theSoftwareDistributionfolder if you are looking to save space or simply install all the latest updates and wait 10 days to see if they are removed automatically.
Thirdly, you should only delete theDataStorefolder if something is really wrong with Windows Update like not showing any new updates for several months, etc. Hopefully, this gives you a better understanding of how Windows Update works and how the files are stored. If you have any questions, post a comment. Enjoy!
Founder of Help Desk Geek and managing editor. He began blogging in 2007 and quit his job in 2010 to blog full-time. He has over 15 years of industry experience in IT and holds several technical certifications.Read Aseem’s Full Bio
Leave a Reply
Your email address will not be published.Required fields are marked*
Comment*
Name*
Email*
Website
Welcome to Help Desk Geek- a blog full of tech tips from trusted tech experts. We have thousands of articles and guides to help you troubleshoot any issue. Our articles have been read over 150 million times since we launched in 2008.
HomeAbout UsEditorial StandardsContact UsTerms of Use
Copyright © 2008-2024 Help Desk Geek.com, LLC All Rights Reserved