A simple utility to temporarily disable or restore mods in your Red Dead Redemption 2 or Grand Theft Auto V game folders by moving mod files to and from a mods_disabled folder.
This tool helps you quickly switch between a "clean" (Vanilla) game state for Online play and a "modded" state for Single Player, without deleting your mods.
This repository hosts two distinct versions of the cleaner, maintained on separate branches:
| Game | Branch | Tool Name |
|---|---|---|
| Red Dead Redemption 2 | main |
rdr2cleaner.py / RDR2ModsCleaner.exe |
| Grand Theft Auto V | gtav-online |
gtavcleaner.py / GTAVModsCleaner.exe |
To access the specific cleaner for your game, check out the corresponding branch:
# For GTA V
git checkout gtav-online
# For RDR2
git checkout main- Get the Tool:
- Download the executable (.exe) from the repository (if available).
- Or run the Python script directly.
- Place in Game Folder:
- Put
RDR2ModsCleaner.exe(or script) in your Red Dead Redemption 2 root folder. - Put
GTAVModsCleaner.exe(or script) in your Grand Theft Auto V root folder. - Put
index.mdin the same folder as the executable.
- Put
- Run the Tool: Double-click the executable or run the script via terminal.
- Select Option:
- (1) Disable mods: Moves all files not part of the base game (mods, logs, etc.) to a
mods_disabledfolder. - (2) Enable mods: Restores files from
mods_disabledback to the game folder.
- (1) Disable mods: Moves all files not part of the base game (mods, logs, etc.) to a
The tool uses a predefined list of "Vanilla" (original) game files.
- Base Game Files: Kept in the game folder.
- Unknown Files: Assumed to be mods and moved to
mods_disabled. - Safety: The tool never moves itself, its config (if applicable), or the
mods_disabledfolder.
Note: The GTAV version includes an embedded list of all vanilla files and requires no extra configuration. The RDR2 version works similarly but may support an optional
index.mdfor custom exclusions.
If you have Python installed, you can build the executable yourself using PyInstaller.
- Install PyInstaller:
pip install pyinstaller
- Navigate to the tool's folder (switch to the correct branch first!).
- Build:
# For RDR2 pyinstaller --onefile --console --clean --icon=cowboy.ico --name "RDR2ModsCleaner" rdr2cleaner.py # For GTA V pyinstaller --onefile --console --clean --icon=gta.ico --name "GTAVModsCleaner" gtavcleaner.py
- The new
.exewill be in thedistfolder.
Licensed under the MIT License.
