If you have found a folder called DxCache on your Windows PC, or you want to remove old DirectX shader files, you can usually clear the cache safely. DirectX shader cache files help games and graphics programs load and run more smoothly. Windows and your graphics drivers can recreate them when needed, so removing them is generally a troubleshooting or storage-cleanup step—not a permanent fix for every graphics issue.
The simplest way to clear the DirectX cache is through Windows Settings or Disk Cleanup. You can also remove certain cache folders manually if the usual options do not work. This guide explains each method, what to expect afterward, and how to avoid deleting unrelated files.
What Is the DirectX Shader Cache?
The DirectX shader cache stores processed shader data used by Windows, games, and other graphics-intensive programs. Shaders are small instructions that help the graphics processing unit (GPU) create visual effects, lighting, shadows, and other on-screen details. Saving prepared shader data can reduce repeated work when an application launches or loads a scene.
Windows, a game, or your graphics driver may build these cache files over time. The cache is temporary: it is not your game save data, personal documents, or Windows installation files. If you clear it, the system can create new shader cache files as applications need them.
After clearing the cache, a game may take longer to load the first time, or you might notice brief stuttering while shaders are rebuilt. Performance should generally settle once the relevant cache has been recreated. The exact effect depends on your PC, graphics driver, and the applications you use.
How to Clear DxCache in Windows Settings
On many Windows 11 and Windows 10 computers, the easiest method is to remove DirectX Shader Cache from the temporary-file cleanup screen. The wording and menu layout can vary slightly depending on your Windows version.
- Save your work and close games and graphics-heavy applications.
- Open Start, then select Settings.
- In Windows 11, choose System and then Storage. In Windows 10, open System and choose Storage.
- Select Temporary files. Windows may take a moment to scan your files.
- Find and select DirectX Shader Cache in the list.
- Review the other selected categories. Uncheck anything you do not want to remove.
- Select Remove files or the equivalent cleanup button, and confirm if prompted.
Take care when reviewing the list. The temporary-files screen can include categories such as Downloads or Recycle Bin, which may contain files you want to keep. Selecting DirectX Shader Cache alone is usually sufficient if your goal is specifically to clear the DirectX cache.
If DirectX Shader Cache does not appear, Windows may have little or no cache data to remove, or the cleanup interface may differ on your version. You can try Disk Cleanup or the manual method below.
How to Clear DirectX Shader Cache With Disk Cleanup
Disk Cleanup is a built-in Windows tool that can remove several types of temporary files, including the DirectX shader cache on supported systems. It is a useful alternative when you prefer a traditional cleanup window.
- Open Start and search for Disk Cleanup.
- Choose the Windows drive, usually C:, and select OK.
- Wait for the scan to finish. If available, select Clean up system files, choose the drive again, and allow another scan.
- In the list of file types, select DirectX Shader Cache.
- Check the other categories before proceeding so you do not remove items unintentionally.
- Select OK, then choose Delete Files to confirm.
The cache might be listed as DirectX Shader Cache, but not every Windows installation displays every cleanup category. If you cannot find it, use the Settings method or check the relevant cache folder manually. You do not need to run Disk Cleanup repeatedly; one successful cleanup is enough.
How to Manually Delete DxCache Files
If you are trying to remove a specific folder named DxCache, it may be part of a graphics-driver cache rather than the Windows cleanup category. Some NVIDIA and AMD driver installations store shader-cache files in folders under your user profile. Folder names and locations can change between driver versions, so treat these paths as common examples rather than guaranteed locations.
To check for the Windows DirectX shader cache, press Windows key + R, enter %LOCALAPPDATA%\D3DSCache, and press Enter. If the folder opens, close games and graphics applications first. You can then delete the files inside the folder, or delete the folder itself if Windows allows it. Windows can recreate the cache as needed.
Some graphics-driver cache locations may include paths like these:
- NVIDIA:
%LOCALAPPDATA%\NVIDIA\DXCache - AMD:
%LOCALAPPDATA%\AMD\DxCache
To inspect one of these locations, press Windows key + R, paste the path into the box, and press Enter. If the folder does not exist, do not create it. Your driver may use another location or manage its cache differently.
Before deleting files manually, close games, launchers, video-editing software, and other applications that use the GPU. If Windows says a file is in use, skip that file or restart the computer and try again before opening the application. Do not force-delete files from unrelated folders or remove driver files just because their names contain “cache.” The examples above are for cache data only.
What Happens After You Clear the DxCache?
Clearing the DirectX cache does not normally uninstall DirectX, remove your graphics driver, or delete saved games. It removes cached data that can be generated again. The first time you launch a game or graphics program afterward, it may rebuild some of its shader data.
During that rebuild, you may notice slower loading, a short pause, or temporary stuttering. This is more likely in a game that compiles many shaders or loads a new area for the first time. It should usually become less noticeable as the cache is repopulated. If severe stuttering continues for a long time, the cause may be something other than the cache.
Clearing DxCache can be useful when troubleshooting corrupted or outdated shader data, following a graphics-driver update, or reclaiming a modest amount of storage. It is not necessary as a routine weekly or monthly maintenance task. Windows and graphics drivers generally manage their caches automatically.
When Should You Clear the DirectX Cache?
Consider clearing the cache if a game or graphics application displays visual glitches, crashes during shader loading, or behaves unusually after a driver update. It can also be reasonable if you are investigating a suspected corrupted cache or need to remove temporary files to free up disk space.
However, clearing the cache is not a guaranteed solution for every graphics problem. Before changing files, try restarting the computer and checking whether the affected game or application has an update. If the problem began after a driver change, follow the GPU manufacturer’s recommended driver-troubleshooting steps as well.
If you are unsure whether a folder is a DirectX cache, do not delete it just because its name looks similar. Check the full path and confirm that it belongs to Windows or your graphics driver. When in doubt, use Windows Settings or Disk Cleanup instead of manually removing files.
What to Do If You Cannot Clear DxCache
If Windows reports that a cache file is in use, close any open games and GPU-enabled applications. Check the notification area and Task Manager for launchers or background programs that may still be running. Then try the cleanup again. Restarting the PC can release files that were being used by a process.
If the folder is missing, there may be no cache to clear, or your system may store it somewhere else. This is not usually a problem. If Windows Settings or Disk Cleanup does not list DirectX Shader Cache, avoid searching through system folders and deleting files at random. The operating system and driver can continue to manage their cache without manual intervention.
If a game continues to crash or show visual problems after the cache is rebuilt, investigate other possible causes. Check for game updates, verify the game’s files using its launcher, install a suitable graphics-driver update, and make sure Windows is up to date. For persistent problems, consult the game or graphics-card manufacturer’s support instructions.
Frequently Asked Questions About Clearing DxCache
Is it safe to delete the DirectX shader cache? In general, yes. The cache contains temporary shader data, and Windows or your graphics driver can rebuild it. Close graphics applications first, and make sure you are deleting the cache rather than unrelated driver or system files.
Will clearing DxCache improve FPS? Usually, deleting the cache does not provide a lasting frame-rate boost. It may help if a cache file is corrupted, but rebuilding the cache can temporarily cause longer loads or stuttering. If you have a performance problem, check for driver, game, temperature, and hardware issues too.
Will I lose my game saves? The DirectX shader cache is separate from game-save data. Using the Windows cleanup option for DirectX Shader Cache should not remove saves. Still, review the cleanup categories carefully and avoid deleting folders unless you know what they contain.
How often should I clear DxCache? There is no routine schedule. Clear it when troubleshooting a specific issue or when you have a reason to remove temporary files. Otherwise, leave cache management to Windows and your graphics driver.
Conclusion
You can clear DxCache through Windows Settings, Disk Cleanup, or—in some cases—by removing files from a known DirectX or graphics-driver cache folder. For most people, the Windows cleanup options are the safest and simplest choice. Close GPU-heavy applications first, select only the cache category you intend to remove, and expect Windows or the graphics driver to rebuild shader data afterward. If the cache is missing or the problem continues, avoid deleting other system files and troubleshoot the game, driver, or Windows installation separately.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.