How to Clean the Driver Cache in Windows
In this article
Cleaning the driver cache removes outdated or corrupted driver installation files that Windows stores on your hard drive. This can free up disk space, fix driver-related issues, and help your system fetch fresh driver files when you update hardware. You don’t need any special tools—just a Windows PC and a few minutes. The process varies slightly depending on your Windows version, but the core steps are the same.
What You'll Need
- An administrator account (you’ll need to approve UAC prompts)
- At least 500 MB of free disk space temporarily (for system restore points)
- Optional: a third-party disk cleanup tool (like CCleaner) if you prefer a GUI, but not required
Step-by-Step
- Create a restore point (optional but recommended). Press Win + R, type
sysdm.cpl, press Enter. Go to the System Protection tab, click Create, name it (e.g., "Before driver cache clean"), and wait for it to finish. This lets you roll back if something goes wrong. - Open Disk Cleanup. Press Win + R, type
cleanmgr, and press Enter. Select the drive where Windows is installed (usually C:). - Access system files. In the Disk Cleanup window, click Clean up system files. This will re-scan and show additional options. You may be prompted for admin credentials—approve it.
- Select the driver cache. Look for a checkbox labeled Device driver packages or Driver packages. Check that box. You can also check Previous Windows installations if you want to remove old Windows.old folders, but that’s optional.
- Run the cleanup. Click OK, then Delete Files. Confirm when asked. The process may take a few minutes.
- Manually clear the driver store (alternative). If Disk Cleanup doesn’t show the option, open an elevated Command Prompt (right-click Start > Command Prompt (Admin) or Windows PowerShell (Admin)). Type
pnputil /enum-driversto list installed driver packages. To delete a specific one, note theoem##.infname and typepnputil /delete-driver oem##.inf /uninstall. To delete all unused driver packages, typepnputil /delete-driver oem##.inf /uninstall /forcefor each one, but be careful—this can remove drivers you still need. - Reboot your PC. Restart to ensure the system re-enumerates hardware and any temporary files are flushed.
Common Mistakes
- Deleting the wrong driver packages. Using
pnputil /delete-driverwithout checking the driver name can remove a driver for your graphics card or network adapter, causing hardware to stop working until you reinstall it. - Skipping the restore point. If you delete a critical driver and don’t have a restore point, you may have to manually reinstall drivers from the manufacturer’s website.
- Not running as administrator. Disk Cleanup won’t show the system files option if you don’t click “Clean up system files” or if you’re not an admin.
- Using third-party tools blindly. Some cleanup tools claim to “clean all drivers” but may remove drivers that are still in use, leading to instability.
- Expecting immediate performance gains. Cleaning the driver cache doesn’t speed up your PC; it frees space and can fix update issues, but it won’t boost FPS or boot times.
Tips
- Run Disk Cleanup after a major Windows update or after you’ve uninstalled a large piece of hardware (like a graphics card). That’s when the cache is most bloated.
- If you use a laptop with limited storage, cleaning the driver cache can free up several gigabytes—worth doing monthly.
- Always keep your current drivers updated before cleaning, so if the cache is cleared, Windows can still fetch the latest versions from Windows Update or the manufacturer.
- Use the
pnputil /export-drivercommand to back up a specific driver before deleting it, just in case. - For advanced users, you can also clear the
C:\Windows\System32\DriverStore\FileRepositoryfolder manually, but only delete subfolders that are clearly old (check timestamps). This is riskier, so stick to Disk Cleanup unless you’re confident.
Troubleshooting
- Disk Cleanup doesn’t show “Device driver packages”. Make sure you clicked “Clean up system files” first. If it still doesn’t appear, your system may not have any redundant driver packages—that’s fine. Alternatively, use the pnputil method.
- After cleaning, a device stops working. Restart your PC. If the issue persists, go to Device Manager (right-click Start > Device Manager), find the device with a yellow exclamation mark, right-click it, and select “Update driver” > “Search automatically for drivers”. Windows will reinstall the driver from Windows Update or the local cache.
- You get an “Access denied” error when using pnputil. Make sure you’re running the command prompt as administrator. Right-click the Start button and choose “Windows PowerShell (Admin)” or “Command Prompt (Admin)”.
- Disk space didn’t increase much. The driver cache might have been small. Check what else is taking space using Storage Sense (Settings > System > Storage) and clean other items like temporary files or recycle bin.
- Windows Update fails after cleaning. This is rare, but if it happens, run the Windows Update troubleshooter (Settings > Update & Security > Troubleshoot > Additional troubleshooters > Windows Update).
Frequently Asked Questions
Is it safe to delete the driver cache?
Yes, if you use the built-in Disk Cleanup tool or the pnputil command carefully. Windows will re-download drivers when needed. Avoid manually deleting the entire DriverStore folder.
How much space will I free up?
It varies. On a typical system, you might free 500 MB to 2 GB. If you have many old GPU driver versions, it could be more. Disk Cleanup will show the exact amount before you confirm.
Will this fix my driver issues?
Sometimes. If your problem is caused by corrupted cached driver files, cleaning the cache forces Windows to reinstall fresh ones. But many driver issues are due to incompatible drivers, not the cache itself.
How often should I clean the driver cache?
Only when you’re low on disk space or after a major hardware/driver change. Doing it monthly is fine but not necessary. Over-cleaning can cause Windows to re-download drivers unnecessarily.
Can I clean the driver cache on Windows 7 or 8?
Yes. Disk Cleanup exists in all Windows versions. The steps are similar, but in Windows 7, the option is called “Driver packages” under “Files from all users on this computer”.
What’s the difference between driver cache and driver store?
The driver cache is part of the driver store (C:\Windows\System32\DriverStore). The cache is a temporary set of files used during installation; the store holds all available drivers. Cleaning the cache removes redundant copies, not the store itself.