Yes, you can safely delete your NVIDIA DXCache files to reclaim disk space or fix stuttering games. Windows and your graphics driver automatically recreate these DirectX shader cache files the next time you launch a game or application.
The DXCache folder stores compiled shader bytecode from DirectX 11 and DirectX 12 games. When you play a game, your graphics card compiles shaders and saves them to this cache so it doesn't have to recompile them every time you load a scene. Over time, as you install, patch, and play dozens of games, this folder can bloat to dozens or even hundreds of gigabytes. If a corrupted cache file causes texture flickering, long loading times, or random frame drops, purging the folder acts as a clean reset for your GPU.
Understanding the DXCache Folder
DirectX shader compilation is heavy work for your processor and graphics card. Instead of processing identical instructions every single boot, modern Windows systems stash these compiled assets in specific local directories.
NVIDIA divides its caching mechanism into a few distinct locations. The primary DXCache folders are located in your user profile under AppData, alongside the DirectX-specific locations managed by the operating system. When these files go out of sync due to major driver updates or game patches, your system tries to read obsolete instructions. That mismatch is what triggers visual artifacts and stuttering.
You won't break your operating system by clearing these files. The worst thing that happens after a deletion is a slightly longer loading screen the first time you boot up an existing game as the GPU rebuilds fresh shader bytecode.
Where to Find DXCache Files
Before deleting anything, you need to know where Windows stores these files. By default, NVIDIA DXCache files reside in two main user-specific directories.
To locate them, press your Windows Key plus R, type %localappdata%, and hit Enter. Look for the following folders:
- NVIDIA Corporation\DXCache: This houses the primary cache generated by your NVIDIA display driver.
- D3DSCache: Located right alongside the NVIDIA folder in your Local AppData directory, managed jointly by Windows and graphics drivers for DirectX shader compilation.
Another secondary cache folder often exists at C:\ProgramData\NVIDIA Corporation\NV_Cache, though this is handled differently and usually managed directly by the NVIDIA display driver service.
Step-by-Step Guide to Deleting DXCache
Because Windows locks files that are actively in use by running background applications or games, you can't always just highlight the DXCache folder and hit delete. Follow these precise steps for a clean removal.
- Close all running games, video editing software, and GPU-heavy applications.
- Press Windows Key plus R, type
cleanmgror open the Windows Settings app, go to System, then Storage, and select Temporary files. - Alternatively, open File Explorer and navigate to
%localappdata%\NVIDIA Corporation. - Right-click the DXCache folder and select Delete.
- If Windows prompts you with an error stating the files are open in another program, open Task Manager (Ctrl + Shift + Esc), look for any lingering NVIDIA Container or game processes, end them, and retry the deletion.
- Empty your Recycle Bin to instantly recover your hard drive space.
For more details on keeping your system clean, check out the official Microsoft Support Guide for managing storage space.
Managing DXCache in the NVIDIA Control Panel
If your DXCache folder swells back up too quickly or you want to restrict how much space it consumes, you can adjust settings through official software interfaces. While NVIDIA doesn't offer a direct slider to limit cache size in the standard control panel, you can toggle shader caching globally.
Open the NVIDIA Control Panel, navigate to Manage 3D Settings, and look for Shader Cache Size. By default, this is set to driver default or unlimited on modern driver versions. You can restrict the cache size to a fixed limit, such as 10GB or 100GB, which forces the driver to automatically prune older, unused shader files without requiring manual intervention. You can read more about display features directly on the NVIDIA Official Website.
Common Mistakes When Cleaning Graphics Caches
Many users make simple errors when attempting to free up storage via cache deletion. Avoiding these pitfalls keeps your system running smoothly.
Don't delete your entire System32 or Program Files folders while hunting for cache directories. Stick strictly to the Local AppData paths. Another frequent mistake is attempting to delete files while a game is minimized in the taskbar; active graphics pipelines will actively lock these files, causing permission errors.
Finally, don't clear your DXCache every single day. Doing so forces your GPU to constantly recompile shaders, which actually increases stuttering and drops average frame rates during gameplay. Only clear the cache when troubleshooting specific graphical glitches, after major driver upgrades, or when reclaiming valuable SSD space.
Frequently Asked Questions
Will deleting DXCache delete my game saves?
No. DXCache only contains compiled shader code used for rendering graphics. Your game saves, configuration files, and personal documents are stored in entirely separate directories like Documents or Steam userdata.
How often should I clear my NVIDIA DXCache?
You only need to clear it when troubleshooting specific game stuttering, after a major clean installation of graphics drivers using tools like Display Driver Uninstaller, or when your SSD is critically low on space.
Why is my DXCache folder so large?
Modern AAA games use complex shaders that take up gigabytes of data. If you play dozens of different titles, the cache accumulates data from all of them over months or years.
Can I move DXCache to another drive?
DirectX and NVIDIA drivers hardcode these paths to your primary user profile directory. Moving them manually via registry hacks can cause instability, so it's best to leave them on your primary drive or limit their size through the control panel.