How to Clean the FileRepository Folder in DriverStore
The FileRepository
folder in DriverStore
is where Windows stores device drivers. Over time, this folder can accumulate outdated and unnecessary files, which can reduce free disk space. Cleaning this folder is possible but requires caution, as accidentally deleting essential drivers can lead to device malfunctions.
What to Know Before Cleaning
Before starting the cleanup, it’s important to understand that the FileRepository
folder holds both old and essential drivers necessary for various devices to function. Deleting required files could cause device issues or even system instability.
Steps for Safe Cleanup
Step 1: Use Windows Built-In Tools
Before attempting manual deletion, try removing unnecessary drivers using Windows' built-in tools:
- Open
Device Manager
(press Win + X and selectDevice Manager
). - Locate devices no longer in use (e.g., old printers or graphics cards).
- Right-click the device and select
Uninstall Device
. - When uninstalling, check
Delete the driver software for this device
to remove it entirely from the system.
Step 2: Clean Up Using Disk Cleanup Utility
The Disk Cleanup
tool can delete temporary files, including unnecessary system drivers:
- Run
Disk Cleanup
(press Win + S, type "Disk Cleanup," and select the app). - Select drive
C:
(or another system drive if Windows is installed there). - In the file deletion list, look for
Device driver packages
and check the box next to it. - Click
OK
and confirm the deletion.
Step 3: Delete Unneeded Drivers via Command Prompt
If you’re sure certain drivers are no longer needed, you can delete them via Command Prompt:
pnputil /enum-drivers
This command displays a list of installed drivers. Find those that are no longer in use and delete them with the following command:
pnputil /delete-driver oem#.inf /uninstall
Replace #
with the driver number you want to remove. Be certain the driver isn’t needed before deleting it.
Step 4: Manually Delete Files from FileRepository Folder
If the previous methods haven’t freed up enough space, you can manually delete files from FileRepository
:
- Open File Explorer and go to
C:\Windows\System32\DriverStore\FileRepository
. - Delete folders related to old or unused drivers, but be cautious and delete only files you are certain you don’t need.