A lightweight PowerShell utility to automatically detect and clean FiveM's cache.
Built for players troubleshooting issues and server admins who want a simple tool to hand out to their community.
FiveM Cache Cleaner automatically finds your FiveM installation, terminates any running FiveM processes, and wipes all cache directories. No configuration needed - just run it and you're done.
- Auto-detects your FiveM installation via the running process or the Windows registry
- Safely terminates all FiveM processes before clearing cache to avoid file locks
- Clears all three relevant cache directories:
data\cache,data\server-cache, anddata\server-cache-priv - Color-coded console output so you can see exactly what happened
- Two run methods: a
.ps1script for PowerShell users and a.batlauncher for one-click use
Option 1 - Batch launcher
Double-click FiveM-Cache-Cleaner.bat. No setup required.
Option 2 - PowerShell
Right-click FiveM-Cache-Cleaner.ps1 and select "Run with PowerShell", or run it from a terminal:
.\FiveM-Cache-Cleaner.ps1If you get an execution policy error, run this first:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned- Windows 10 / 11
- PowerShell 5.1 or newer (included with Windows by default)
- FiveM installed via the standard installer
- The script checks for a running
FiveM.exeprocess to locate the install directory. - If FiveM is not running, it falls back to scanning the Windows registry.
- All FiveM processes are terminated to prevent file locks during deletion.
- The three cache directories are deleted recursively.
- The script reports success or any errors for each folder individually.
| File | Description |
|---|---|
FiveM-Cache-Cleaner.ps1 |
Main PowerShell script |
FiveM-Cache-Cleaner.bat |
Batch launcher for one-click execution |
Pull requests are welcome. If you find a bug or have a feature request, open an issue.