This is a simple batch script for cleaning up various cache and log files created by League of Legends.
The script performs the following actions:
- Kills all running League of Legends processes.
- Deletes the following directories:
- LCCache
- Cache
- GPUCache
- Logs
- Screenshots
- Highlights
- Deletes all League of Legends and Riot Games related files in the Windows Prefetch directory.
- Deletes the Machine CFG directory in the ProgramData directory.
- Deletes the Riot Games log directory in the LocalAppData directory.
- Optionally deletes the Config directory.
- Download the
Cleaner.bat
file. - Run the script by double-clicking on it or executing it from the command line.
- When prompted, choose whether or not to delete the Config files.
Note: The script needs to be run with administrator privileges to function correctly.
This script deletes files and directories related to League of Legends. Use it at your own risk. Always make sure you have a backup of any important files before running the script.