https://github.com/hl2guide/nvidia-shaders-cleaner
A PowerShell 7 script that removes ALL shader files (*.nvph) in the NVIDIA DXCache folder in Windows.
https://github.com/hl2guide/nvidia-shaders-cleaner
gpu nvidia nvidia-gpu powershell powershell-script powershell-scripts powershell7 windows-11 windows11
Last synced: 7 months ago
JSON representation
A PowerShell 7 script that removes ALL shader files (*.nvph) in the NVIDIA DXCache folder in Windows.
- Host: GitHub
- URL: https://github.com/hl2guide/nvidia-shaders-cleaner
- Owner: hl2guide
- License: mit
- Created: 2025-07-22T17:05:10.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-07-22T17:46:44.000Z (7 months ago)
- Last Synced: 2025-07-22T19:08:13.934Z (7 months ago)
- Topics: gpu, nvidia, nvidia-gpu, powershell, powershell-script, powershell-scripts, powershell7, windows-11, windows11
- Language: PowerShell
- Homepage:
- Size: 59.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NVidia-Shaders-Cleaner 🧹
A PowerShell 7 script that removes ALL shader files (*.nvph) in the NVIDIA DXCache folder in Windows.
Title: DXCache NVidia Shaders Cleaner Script for NVidia GPUs
Version: 1.0
Filename: clear_nvidia_shaders.ps1
## Preview

## Important Notes
This script applies to a user of NVidia GPUs and does nothing at all
for AMD or Intel GPUs.
NVIDIA Shaders can become corrupted or invalid and need to be rebuilt
by a game or app.
__This script removes ALL shader files (*.nvph) in the NVIDIA DXCache folder:__
_$env:LOCALAPPDATA\NVIDIA\DXCache_
Before running this script check that all PC games and apps that use your
NVidia GPU (hardware acceleration) are closed off and not open and running.
This includes the NVidia App and related processes in the
taskbar (bottom right on Windows desktop).
Any PC games can then recreate the shaders (takes time) as needed
at game startup or otherwise.
## Requirements
The script MUST be `run as Administrator` in `PowerShell 7.5.2` or later to work
as intended.
## Usage
Read the above text and then CD into the correct directory and then to
run the script use:
`./clear_nvidia_shaders.ps1`