Windows keeps every driver you have ever installed, including the old ones
FileRepository holds a copy of each driver package for rollback. What it is for, how big it should be, and the supported way to prune it.
C:\Windows\System32\DriverStore\FileRepository holds a copy of every driver package Windows has installed, including every superseded version. On a machine with graphics drivers updated monthly for three years, it is one of the larger folders in C:\Windows.
Why it keeps the old ones
So that Roll Back Driver works. When a new graphics driver breaks something, Device Manager can put the previous one back, and it can only do that because the package is still there. That is genuinely useful and it is why this folder should be pruned rather than emptied.
Seeing what is in it
pnputil /enum-driversRun it in an administrator prompt. Each entry has a published name like oem12.inf, the original name, the provider and the version. Several entries from the same provider with different versions is exactly what you are looking for: the highest version is in use and the rest are history.
Removing superseded packages
pnputil /delete-driver oem12.inf /uninstallThat removes one package. Windows refuses if the driver is currently in use, which is the safety net: the command cannot remove the driver your hardware is running on. Add /force only if you know exactly why you are doing it, because that removes the refusal along with the protection.
The easier route for the common case
Disk Cleanup, in its system files mode, has a Device driver packages category that removes superseded packages without naming them individually. It is more conservative than doing it by hand and it is enough for most machines.
Graphics drivers specifically
Nvidia and AMD installers keep their own copies outside the driver store, in C:\ProgramData or their own folders under Program Files, and a clean installation option in their installers removes the old ones. That is separate from the Windows driver store and worth checking on the same pass.
Common questions
What is the DriverStore FileRepository folder?
Windows' store of every driver package it has installed, kept so Roll Back Driver works. Each version is retained until it is explicitly removed, which is why it grows on machines with frequent driver updates.
Can I delete old drivers in Windows?
Yes, with pnputil /delete-driver for a specific package, or through Disk Cleanup's Device driver packages category in system files mode. Windows refuses to remove a driver that is currently in use.
How do I list installed driver packages?
Run pnputil /enum-drivers in an administrator prompt. Several entries from the same provider with different versions means the older ones are superseded and safe to remove.
Is it safe to delete FileRepository folders by hand?
No. The folder names are hashed and the store keeps its own index, so removing one directly leaves Windows believing a driver is installed when it is not. Use pnputil or Disk Cleanup.