Cleanup FileRepository Folder in DriverStore – You can notice that FileRepository size has been increased up to GB’s after using your PC for few years. This is a common issue with every windows user and irritating thing is when you try to emptying this folder it will not get emptied. There are some standard cleanup tools available but they also fail in cleaning up this mess. So in this article “Cleanup FileRepository Folder in DriverStore” we will dig more to utilize this space to maximum extent. Before going through the solution we would like to discuss bit about FileRepository.
What is FileRepository Folder?
Are you using same windows installation from long and also updating drivers regularly? If yes, then all the previous version of drivers will be stored in this FileRepository Folder. Windows is taking these copies because if new version of driver is unstable then you can restore previous from here. If you want to check your FileRepository then here is the path ‘C:\Windows\System32\DriverStore\. This will look like:
These files are quite useful also but the point is you can keep them by wasting your disk space.
Note: We would strongly recommend you to create system restore point before deleting FileRepository Folder.
How To Cleanup FileRepository Folder in DriverStore
Clean FileRepository – Using Windows Utility
Windows is having one inbuilt disk cleanup tool to remove old unused drivers. Windows utility is not very much effective in cleaning. It is unlikely that you will be able to free only 30-100 MB of space.
- So first of all press Windows + R and type cleanmgr.exe
- From Disk Cleanup : Drive Selection select OS (C:) from drives drop down
- Once you click on OK it will start calculating how much space will be able to free from OS (C:)
- Now from Disk Clean up window select Clean Up System Files
- Select Device Drive Packages option and click on OK to start clean up task.
Clean FileRepository – Using CMD
- First of all open Command Prompt with administration access
- Type pnputil.exe /e > c:\drivers.txt in cmd and press enter. This will create on notepad file named as drivers.txt at C drive. This text file will have the list of driver package present in FileRepository Folder.
- Now you have the list of driver package you just need to delete them. So for deletion type pnputil.exe /d oemxx.inf (here XX is in publisher name which can be taken from driver.txt file).
- While deleting driver there are chances that it is been in use. So if a driver is in use you will get an error message “Deleting the driver package failed : one or more devices are presently installed using the specified INF”. If you want to delete package forcefully then give command pnputil.exe /d /f oemxx.inf. This way you can ignore the condition like drive package is in use.
Clean FileRepository – Using 3rd Party Tool
Whatever we have explained above can also be done with Driver Store Explorer (RAPR) utility. This will simplify your effort and does almost every task. You just need to select the drivers which you want to delete.
- First of all download the tool from here – Driver Store Explorer (RAPR)
- Now run and install the program with Administrative privileges and press Enumerate
- After that you just need to choose the packages which you want to delete. This tool also gives you option like Delete Package, Force Delete Package and Select Old Drivers directly and delete them.
These are some methods for Cleanup FileRepository Folder in DriverStore. If you have something extra or facing any issues feel free to connect with us via comments.