TechBuzzPro

How to Clear DirectX Shader Cache in Windows 11

· 5 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

To clear the DirectX shader cache in Windows 11, open Settings > System > Storage > Temporary files, check "DirectX Shader Cache," and click "Remove files." This frees up disk space and can fix graphical glitches or stuttering caused by corrupted cached shaders. No extra tools are needed—just a few clicks.

What You'll Need

  • A Windows 11 PC with administrator access (you'll need to confirm a UAC prompt if using the Disk Cleanup method).
  • At least a few minutes—the process is quick, but the system may rebuild shaders on your next game launch.

Step-by-Step

  1. Open Settings. Press Win + I on your keyboard, or click the Start button and select the gear icon.
  2. Go to System > Storage. In the left sidebar, click "System," then select "Storage" from the list.
  3. Open Temporary files. Under the "Storage management" section, click "Temporary files." Windows will scan for removable files—this may take a few seconds.
  4. Find DirectX Shader Cache. Scroll through the list of file categories. Look for "DirectX Shader Cache." It's usually near the bottom. The size shown is the total space it's using.
  5. Select and remove. Check the checkbox next to "DirectX Shader Cache." You can also check other categories (like "Thumbnails" or "Delivery Optimization Files") if you want to free up more space, but for this task, just select the shader cache. Then click the "Remove files" button at the top.
  6. Confirm if prompted. If Windows asks for confirmation, click "Continue" or "Yes." The cache will be deleted—this usually takes under a minute.
  7. Restart your PC (optional but recommended). After clearing, restart your computer. This ensures all cached shaders are fully flushed and your GPU driver starts fresh.

Alternative method using Disk Cleanup:

  1. Press Win + R, type cleanmgr, and press Enter.
  2. Select your system drive (usually C:) and click OK.
  3. Click "Clean up system files" and select the drive again.
  4. Scroll to "DirectX Shader Cache" in the list, check it, and click OK, then "Delete Files."

Common Mistakes

  • Not selecting the right category. Some users accidentally delete "DirectX Shader Cache" thinking it's under "Downloads" or "Recycle Bin." It's a separate category—make sure you check the correct box.
  • Deleting everything at once. If you check all categories in Temporary files, you might remove things like saved passwords or old Windows update files. Stick to the shader cache unless you know what you're doing.
  • Skipping the restart. Not restarting after clearing can leave some shader remnants in memory, especially if games are running in the background.
  • Using third-party cleaners. Tools like CCleaner often have outdated or incorrect paths for the shader cache. Stick with the built-in Windows method.

Tips

  • Clear it after GPU driver updates. After installing a new graphics driver, clearing the shader cache prevents conflicts between old and new shader versions.
  • Do it when games stutter or crash. If a game suddenly has texture pop-in, freezing, or visual artifacts, a corrupted shader cache is a common culprit—clearing it often fixes these issues.
  • Expect a one-time rebuild. The next time you launch a game, it will recompile shaders, which may cause a longer loading screen or slight stutter for the first few minutes. This is normal.
  • Check the size periodically. The shader cache can grow to several gigabytes over time, especially if you play many games. Clearing it monthly keeps your drive tidy.

Troubleshooting

If the DirectX Shader Cache option doesn't appear:

  • Make sure you're running Windows 11 (version 21H2 or later). If you're on an older build, the option may be hidden. Run Windows Update to get the latest version.
  • If you have a very new GPU or driver, the cache might be stored differently. Try the Disk Cleanup method instead—it should show up there.

If the removal fails or the size doesn't change:

  • Close all games and graphics-heavy apps (like video editors or 3D modeling software) before clearing. Files in use can't be deleted.
  • Restart your PC and try again. Sometimes a background process (like a game launcher) holds the cache files.
  • Run Disk Cleanup as administrator (right-click the Start button, select "Terminal (Admin)", then type cleanmgr and press Enter).

If games still stutter after clearing:

  • Update your GPU driver from the manufacturer's website (NVIDIA, AMD, or Intel).
  • Verify the game files (in Steam, Epic, etc.) to ensure no game files are corrupted.
  • If the issue persists, the problem might not be the shader cache—check your system temperatures and available RAM.

Frequently Asked Questions

Is it safe to delete the DirectX Shader Cache?

Yes, it's completely safe. The cache is just temporary compiled shaders. Windows and your games will rebuild them as needed. Deleting it never damages your system or games.

Will clearing the shader cache make my games run slower?

Only temporarily. The first time you launch a game after clearing, it may take longer to load and might stutter for a few minutes while shaders recompile. After that, performance returns to normal.

How often should I clear the DirectX Shader Cache?

There's no set rule. Clear it when you notice graphical issues, after a driver update, or when you're low on disk space. Doing it monthly is fine if you play many games.

Does clearing the shader cache affect saved games or settings?

No. The shader cache is completely separate from your game saves, config files, or settings. You won't lose any progress or preferences.

Why is my DirectX Shader Cache so large?

Modern games with high-resolution textures and complex graphics can generate hundreds of megabytes of shaders. If you play many games, the cache accumulates. It's normal to see 1-2 GB or more.

Can I clear the shader cache for just one game?

Not directly through Windows. The cache is stored per-app, but Windows doesn't offer a per-game filter. However, most games have their own shader cache settings—check the game's graphics options or launcher to clear it individually.