DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
VGSources
Blog

How to Delete the DirectX Shader Cache in Windows 11 and Windows 10

Clear the Windows-managed DirectX Shader Cache safely with Settings or Disk Cleanup, and learn when separate NVIDIA or AMD cache cleanup is necessary.
WorldWindows 11 and Windows 10 Length7 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The safest way to delete the Windows-managed DirectX Shader Cache is: open Settings > System > Storage > Temporary files, select DirectX Shader Cache, and choose Remove files. This works in Windows 10 and Windows 11, although labels can vary slightly between builds. If the option is missing, use Disk Cleanup and select Clean up system files.

Clearing the cache is generally safe, but it does not uninstall DirectX or guarantee higher FPS. Windows and your games will recreate shader data, so the first launch afterward may take longer or stutter briefly.

What the DirectX Shader Cache does

Games and graphics applications use shaders to describe how the GPU should render lighting, textures, shadows, effects, and other visual elements. Compiling shaders repeatedly can increase loading time and cause interruptions, so Windows and graphics drivers save compiled shader data in caches for reuse.

“DirectX Shader Cache” is not necessarily one universal folder. It may refer to several separate caches:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
GIGABYTE Radeon RX 9070 XT Gaming OC 16G Graphics Card, PCIe 5.0, 16GB GDDR6, GV-R9070XTGAMING OC-16GD Video Card
  • Powered by Radeon RX 9070 XT
  • WINDFORCE Cooling System
  • Hawk Fan
  • Server-grade Thermal Conductive Gel
  • RGB Lighting
  • Windows-managed Direct3D cache: the cache targeted by Windows Storage cleanup and Disk Cleanup.
  • NVIDIA or AMD driver caches: separate vendor-managed data that may remain after Windows cleanup.
  • Game or application caches: files controlled by a particular game, launcher, engine, or graphics application.
  • Working-directory caches: some Direct3D applications store cache data in their own folders rather than the normal Windows-managed location.

Microsoft documents disk-backed Direct3D caches as persistent between application runs and notes that cache versions can be discarded and recreated when required. Microsoft’s D3D12 shader-cache documentation also describes exceptions for application-owned working-directory caches.

Delete the DirectX Shader Cache through Settings

Close games, launchers, recording tools, GPU control panels, and other graphics-heavy applications before starting.

Windows 11

  1. Open Start > Settings.
  2. Go to System > Storage.
  3. Open Temporary files. On some Windows 11 builds, the equivalent controls may appear under Cleanup recommendations or a similarly named storage-cleanup page.
  4. Check DirectX Shader Cache.
  5. Select Remove files.

Windows 10

  1. Open Start > Settings.
  2. Go to System > Storage > Temporary files.
  3. Select DirectX Shader Cache.
  4. Choose Remove files.

Microsoft’s Storage cleanup guidance covers temporary-file removal in both Windows 10 and Windows 11. The exact wording and layout depend on your Windows release.

Use Disk Cleanup when the option is missing

Disk Cleanup is the most useful built-in fallback, particularly when the Settings page does not show the cache.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Press the Windows key and search for Disk Cleanup.
  2. Open the desktop app.
  3. Select the Windows system drive, normally C:, and choose OK.
  4. Select Clean up system files.
  5. Select C: again if Windows asks you to choose a drive.
  6. Check DirectX Shader Cache.
  7. Select OK, then Delete Files.

If you want to remove only the DirectX cache, leave the other categories unchecked. Disk Cleanup can remove additional temporary and system files, so review the list before confirming. Microsoft specifically documents Disk Cleanup as a way to clear the default disk-backed Direct3D cache. See Microsoft’s D3D12 shader-cache flags documentation.

Should you manually delete %LOCALAPPDATA%D3DSCache?

%LOCALAPPDATA%D3DSCache is a commonly encountered Windows DirectX cache location, but manual deletion should be a fallback rather than the first step. Microsoft’s documented ordinary-user method is Storage cleanup or Disk Cleanup, not indiscriminate folder removal.

Rank #2
GIGABYTE GeForce RTX 5070 Ti Gaming OC 16G Graphics Card, 16GB 256-bit GDDR7, PCIe 5.0, WINDFORCE Cooling System, GV-N507TGAMING OC-16GD Video Card
  • Powered by the NVIDIA Blackwell architecture and DLSS 4
  • Powered by GeForce RTX 5070 Ti
  • Integrated with 16GB GDDR7 256bit memory interface
  • PCIe 5.0
  • WINDFORCE cooling system

If you must inspect this location:

  1. Close all games, launchers, browsers using hardware acceleration, and graphics utilities.
  2. Press Win + R, enter %LOCALAPPDATA%D3DSCache, and press Enter.
  3. Delete the cache contents, not unrelated parent folders.
  4. Skip any file Windows reports as locked.
  5. Restart Windows and retry Disk Cleanup if necessary.

Do not delete DirectX DLLs, Windows system folders, or arbitrary folders merely because their names contain dxcache or Cache.

Clear NVIDIA shader caches separately

Windows cleanup does not necessarily remove every NVIDIA driver cache. NVIDIA’s current support procedure, updated May 25, 2026, uses the NVIDIA App and identifies these locations under your local AppData folder:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • NVIDIADXCache
  • NVIDIAGLCache
  • NVIDIA CorporationNV_Cache

Use this procedure only when troubleshooting appears NVIDIA-specific, such as crashes, visual artifacts, or problems that began after a driver update:

  1. Open the NVIDIA App.
  2. Go to Graphics > Global Settings.
  3. Find Shader Cache Size.
  4. Set it to Off and apply the change.
  5. Restart Windows.
  6. Press Win + R, enter %USERPROFILE%AppDataLocal, and press Enter.
  7. Open NVIDIA and delete the contents of DXCache and GLCache.
  8. Open NVIDIA Corporation and delete the contents of NV_Cache.
  9. Reopen the NVIDIA App and return Shader Cache Size to Driver Default.
  10. Restart Windows again.

NVIDIA says these files are recreated when applications run again. Its support page lists the current Driver Default as 16 GB as of May 25, 2026; that setting can change in future driver or app releases. Read NVIDIA’s current cache-cleanup instructions before following vendor-specific steps.

An optional PowerShell equivalent for the deletion step is:

Remove-Item "$env:LOCALAPPDATANVIDIADXCache*" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item "$env:LOCALAPPDATANVIDIAGLCache*" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item "$env:LOCALAPPDATANVIDIA CorporationNV_Cache*" -Recurse -Force -ErrorAction SilentlyContinue

Do not run these commands while a game, the NVIDIA App, or another graphics-intensive process is using the cache.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
ASUS TUF Gaming GeForce RTX™ 5080 16GB GDDR7 OC Edition Graphics Card
  • Powered by the NVIDIA Blackwell architecture and DLSS 4. System Requirements: Minimum 850W PSU with 16-pin 12V-2x6 (12VHPWR) connector required. Verify before purchasing.
  • Military-grade components deliver rock-solid power and longer lifespan for ultimate durability. Compatibility: 348mm (13.7") length, 3.6 slots, 4.3 lbs. Confirm case clearance and slot spacing. GPU bracket included.
  • Protective PCB coating helps protect against short circuits caused by moisture, dust, or debris
  • 3.6-slot design with massive fin array optimized for airflow from three Axial-tech fans
  • Phase-change GPU thermal pad helps ensure optimal thermal performance and longevity, outlasting traditional thermal paste for graphics cards under heavy loads

Clear AMD shader caches separately

AMD GPUOpen has published Windows commands for AMD-specific DirectX and OpenGL cache directories:

rmdir /s /q "%LOCALAPPDATA%AMDDxCache"
rmdir /s /q "%LOCALAPPDATA%AMDGLCache"

Run them from Command Prompt after closing games and graphics applications. These commands target AMD-specific directories; they do not necessarily clear the Windows-managed DirectX Shader Cache. Folder names and availability can vary by AMD driver version and workload, and the directories may be recreated later. The commands are attributed to AMD GPUOpen’s optimization presentation, rather than presented as a universal Windows procedure.

What happens after you clear the cache?

  • DirectX is not uninstalled. Runtime files remain in Windows.
  • Your games and applications are not removed.
  • The cache is rebuilt automatically when supported games and applications run.
  • The first launch may take longer. Shader compilation can also cause temporary stutter, CPU activity, or disk activity.
  • The cache may begin filling immediately. That is normal and does not mean the cleanup failed.

Clearing the cache can help when compiled data is stale or corrupted, particularly after a game, Windows, or graphics-driver update. It is not a general FPS optimization. Performance may briefly be worse until shaders are compiled again, and there is no guarantee of a lasting frame-rate improvement.

If Windows will not delete the files

Files are in use

Close the game and its launcher, including Steam, Epic Games Launcher, Xbox, or other launchers. Also close hardware-accelerated browsers, screen-recording software, overlays, GPU control panels, and monitoring tools. Restart Windows, then run Disk Cleanup before reopening any of them.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use Safe Mode only as an advanced fallback if ordinary cleanup continues to fail. Avoid third-party force-delete utilities unless you have a specific troubleshooting reason and understand what they are removing.

“DirectX Shader Cache” is missing

The cache may be empty, not currently detected, managed by a vendor or application, or hidden by differences between Windows builds. Try these steps:

Rank #4
Sale
ASUS Dual GeForce RTX 5060 Ti 16GB GDDR7 OC Edition Gaming Graphics Card
  • AI Performance: 767 AI TOPS
  • OC mode: 2632 MHz (OC mode)/ 2602 MHz (Default mode)
  • Powered by the NVIDIA Blackwell architecture and DLSS 4
  • Axial-tech fan design features a smaller fan hub that facilitates longer blades and a barrier ring that increases downward air pressure
  • A 2.5-slot design maximizes compatibility and cooling efficiency for superior performance in small chassis
  1. Open Disk Cleanup and select Clean up system files.
  2. Confirm that you selected the Windows system drive.
  3. Restart Windows and check again.
  4. If the issue is NVIDIA- or AMD-specific, inspect the relevant vendor procedure.
  5. Do not delete random cache folders or DirectX system files.

The cache returns immediately

That is expected. Shader caches exist to be regenerated and reused. A large game library can create substantial cache data, but unusually rapid growth combined with crashes, artifacts, or repeated compilation failures points to a broader problem with the game, driver, storage device, or system stability.

What clearing the cache will not fix

Cache deletion cannot repair a faulty or incompatible graphics driver, damaged game installation, unsupported hardware, overheating, an unstable overclock, defective memory, or another hardware fault. It also does not clear every temporary cache on your PC, including Microsoft Store, Windows Update, Delivery Optimization, game-managed shader-precache data, or application working-directory caches. Microsoft documents those cleanup categories separately in its Windows storage-cleanup guidance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If clearing the cache does not help, verify the game files, update or cleanly reinstall the graphics driver, remove unstable overclocks, check temperatures and storage health, and investigate the specific game’s support guidance.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Frequently Asked Questions

Is it safe to delete the DirectX Shader Cache?

Yes, deleting it through Windows Storage or Disk Cleanup is generally safe because the cache contains disposable compiled shader data. Windows and supported applications can regenerate it.

Will deleting the cache improve FPS?

Not necessarily. It may help stale or corrupted shader data, but it is a troubleshooting step rather than a guaranteed performance upgrade. The first launch may temporarily stutter.

Does Windows recreate the DirectX Shader Cache?

Yes. The cache is normally recreated as games and graphics applications compile shaders again.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Sale
GIGABYTE GeForce RTX 5060 WINDFORCE OC 8G Graphics Card, Cooling System, 8GB 128-bit GDDR7, PCIe 5.0, Manufactured by NVIDIA, DisplayPort & HDMI - Video Output Interface, GV-N5060WF2OC-8GD Video Card
  • Powered by the NVIDIA Blackwell architecture and DLSS 4
  • Powered by GeForce RTX 5060
  • Integrated with 8GB GDDR7 128bit memory interface
  • PCIe 5.0
  • WINDFORCE cooling system

Why is DirectX Shader Cache missing from Disk Cleanup?

The cache may be empty, hidden by the Windows build’s interface, managed elsewhere, or unavailable in the basic Disk Cleanup view. Select Clean up system files, confirm the system drive, and restart Windows before trying again.

Should I delete NVIDIA DXCache and GLCache too?

Only if you are troubleshooting an NVIDIA-specific problem or unusually large vendor caches. NVIDIA’s driver caches are separate from the Windows-managed DirectX cache.

Why does my game stutter after clearing the cache?

The game is likely recompiling shaders. Initial loading and stutter can improve after the required shaders have been rebuilt and cached again.

Can I delete the entire D3DSCache folder?

Use Storage cleanup or Disk Cleanup first. If manual cleanup is necessary, close graphics applications and delete only the cache contents, not unrelated parent folders.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How often should I clear the cache?

There is no routine schedule. Clear it when troubleshooting corruption, update-related problems, unexpected cache growth, or disk-space pressure. Repeated clearing removes useful data and forces recompilation.

The Bottom Line

For most Windows 10 and Windows 11 users, use Settings > System > Storage > Temporary files > DirectX Shader Cache > Remove files. If that option is unavailable, use Disk Cleanup with Clean up system files. Clear NVIDIA or AMD caches separately only when the problem is vendor-specific, and expect temporary shader-compilation stutter afterward.

Quick Recap

SaleBestseller No. 1
GIGABYTE Radeon RX 9070 XT Gaming OC 16G Graphics Card, PCIe 5.0, 16GB GDDR6, GV-R9070XTGAMING OC-16GD Video Card
GIGABYTE Radeon RX 9070 XT Gaming OC 16G Graphics Card, PCIe 5.0, 16GB GDDR6, GV-R9070XTGAMING OC-16GD Video Card
Powered by Radeon RX 9070 XT; WINDFORCE Cooling System; Hawk Fan; Server-grade Thermal Conductive Gel
$814.28
Bestseller No. 2
GIGABYTE GeForce RTX 5070 Ti Gaming OC 16G Graphics Card, 16GB 256-bit GDDR7, PCIe 5.0, WINDFORCE Cooling System, GV-N507TGAMING OC-16GD Video Card
GIGABYTE GeForce RTX 5070 Ti Gaming OC 16G Graphics Card, 16GB 256-bit GDDR7, PCIe 5.0, WINDFORCE Cooling System, GV-N507TGAMING OC-16GD Video Card
Powered by the NVIDIA Blackwell architecture and DLSS 4; Powered by GeForce RTX 5070 Ti; Integrated with 16GB GDDR7 256bit memory interface
$1,162.49
Bestseller No. 3
ASUS TUF Gaming GeForce RTX™ 5080 16GB GDDR7 OC Edition Graphics Card
ASUS TUF Gaming GeForce RTX™ 5080 16GB GDDR7 OC Edition Graphics Card
3.6-slot design with massive fin array optimized for airflow from three Axial-tech fans; Auto-Extreme precision automated manufacturing helps ensure higher reliability
$1,831.31
SaleBestseller No. 4
ASUS Dual GeForce RTX 5060 Ti 16GB GDDR7 OC Edition Gaming Graphics Card
ASUS Dual GeForce RTX 5060 Ti 16GB GDDR7 OC Edition Gaming Graphics Card
AI Performance: 767 AI TOPS; OC mode: 2632 MHz (OC mode)/ 2602 MHz (Default mode); Powered by the NVIDIA Blackwell architecture and DLSS 4
$790.37
SaleBestseller No. 5
GIGABYTE GeForce RTX 5060 WINDFORCE OC 8G Graphics Card, Cooling System, 8GB 128-bit GDDR7, PCIe 5.0, Manufactured by NVIDIA, DisplayPort & HDMI - Video Output Interface, GV-N5060WF2OC-8GD Video Card
GIGABYTE GeForce RTX 5060 WINDFORCE OC 8G Graphics Card, Cooling System, 8GB 128-bit GDDR7, PCIe 5.0, Manufactured by NVIDIA, DisplayPort & HDMI - Video Output Interface, GV-N5060WF2OC-8GD Video Card
Powered by the NVIDIA Blackwell architecture and DLSS 4; Powered by GeForce RTX 5060; Integrated with 8GB GDDR7 128bit memory interface
$459.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How To Create Custom Stickers & Shoutouts In Monster Hunter WildsMonster Hunter WildsBlog20min
  2. How to Get XL Gogoat in Pokemon Legends Z-A (An Extra-Large Gogoat)Pokemon Legends Z-ABlog20min
  3. How to Get Rotting Lightbringer in Diablo 4Diablo 4Blog17min
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.