TechBuzzPro

How to Delete Driver Package in Windows 11

· 4 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can delete old or unused driver packages in Windows 11 to free up disk space and prevent driver conflicts. This process removes the archived installation files stored in the system driver store without affecting currently installed drivers that are actively working on your hardware.

What You'll Need

  • A Windows 11 PC with administrative privileges
  • Command Prompt opened as Administrator
  • Basic familiarity with command-line syntax (optional if using Device Manager)

Step-by-Step

  1. Create a System Restore Point: Before making changes to system files, it is crucial to create a safety net. Search for "Create a restore point" in the Start menu, open System Properties, and click "Create." Name it something like "Before Driver Cleanup" and wait for the confirmation message.
  2. Open Command Prompt as Administrator: Right-click the Start button and select "Terminal (Admin)" or "Windows PowerShell (Admin)." If prompted by User Account Control, click Yes. This tool provides the most thorough access to the driver store compared to the graphical interface.
  3. List All Driver Packages: Type pnpuninstall.exe /list or use the DISM command: dism /online /get-drivers. This command outputs a list of all driver packages stored in the Windows Driver Store, including those for hardware no longer connected to your PC. Look for entries marked as "Staged" or note the OEM#.inf identifiers.
  4. Identify Drivers to Remove: Carefully review the list. Do not remove drivers for hardware you currently use (like your GPU, network adapter, or chipset). Focus on drivers for external devices you no longer own, such as an old printer, scanner, or USB dongle. Note the exact INF file name (e.g., oem15.inf) or the provider name.
  5. Delete the Specific Driver Package: Use the following command format, replacing oemXX.inf with the actual file name you identified: dism /online /remove-driver /driver:oemXX.inf Press Enter. If successful, the system will confirm that the driver package was removed from the store.
  6. Verify Removal: Run the dism /online /get-drivers command again to ensure the specific OEM file no longer appears in the list. You can also check the size reduction in the DriverStore folder if desired.

Common Mistakes

The most frequent error is deleting a driver package that is still actively used by the operating system. While Windows usually prevents the deletion of currently active drivers, attempting to force-remove essential components can lead to hardware malfunctions after a reboot. Another common mistake is skipping the backup step; if a critical driver is accidentally deleted, you may need to reinstall Windows or manually download the driver from the manufacturer's website to restore functionality.

Tips

If you prefer a graphical interface over the command line, you can use Device Manager. Open Device Manager, right-click a device, select "Properties," go to the "Driver" tab, and click "Driver Details." Note the INF file name there. Then, navigate to C:\Windows\System32\DriverStore\FileRepository and delete the corresponding folder manually. However, this method does not update the registry entries as cleanly as the DISM command, so the DISM method is preferred for a complete cleanup.

Troubleshooting

If the DISM command fails with an "Access Denied" error, ensure you are running the terminal with full administrative rights. If it says the driver is "in use," restart your computer into Safe Mode and try the command again, as fewer drivers load during startup. If you cannot identify which OEM file belongs to which device, search online for the INF filename or look at the "Provider" column in the DISM output to match it with your known hardware manufacturers.

Frequently Asked Questions

Will deleting a driver package uninstall the current driver?

No. Deleting a package from the Driver Store only removes the archived installation files. It does not affect the driver currently loaded in memory or used by your hardware. The driver remains functional until you manually uninstall it via Device Manager or Windows Update replaces it.

Can I recover a deleted driver package?

If you did not create a System Restore Point, recovery is difficult. Windows Update will likely attempt to reinstall the driver automatically if the hardware is detected. Alternatively, you can download the driver directly from the manufacturer’s support page.

Is it safe to delete all OEM drivers listed?

Never delete all drivers blindly. Only remove packages associated with hardware you no longer possess. Deleting chipset, storage controller, or graphics drivers can cause boot failures or loss of display output.

How much space can I save?

Space savings vary widely. On a typical home PC, you might reclaim 500MB to 2GB. On enterprise machines with many peripheral drivers accumulated over years, the savings can be significantly higher.