Cleaning Up DriverStore\FileRepository
Basically you can delete all of the folder contents in Windows 10 — but this might be unsecure, and you might face with errors, crashes etc.
Important. As a precaution, we strongly recommend creating a restore point first before deleting any of the files.
Windows 10 has a built-in disk cleanup tool that can also remove old unused drivers.
- Run the Disk Cleanup Wizard by pressing the Win + R keys and entering the command cleanmgr.exe;
- In the Disk Cleanup for (C:) window, click the Cleanup System Files button;
- Select the Device driver packages option and click OK to start up the drivers clean up.
This method of cleaning the FileRepository folder is extremely inefficient. It is unlikely that you will be able to reduce the size of the folder by more than 100 MB.
In case you want to clean up DriverStore folder more deeply, please follow the steps below 😃
- Export the list of drivers in the table form to a text file using the command:
dism /online /get-drivers /format:table > c:\drivers.txt