A simple Windows batch script to clean up unnecessary folders and files generated by Unreal Engine projects and development tools like Visual Studio and Rider.
Deletes common generated folders and files such as:
.idea(JetBrains Rider).vs(Visual Studio).vscode(VS Code)Binaries/Build/DerivedDataCache/Intermediate/Saved/*.sln(solution files).vsconfig(Visual Studio settings)
The script:
- π Recursively deletes each folder/file without prompts.
- π Logs all actions (deleted, skipped, not found).
- π Displays the log in the terminal at the end.
- π§½ Cleans up the log file automatically.
- Copy
CleanUnrealProject.batinto the root of your Unreal Engine project. - Double-click it, or run it from the command line:
CleanUnrealProject.bat
Let me know if you want:
- π A version that works recursively in subdirectories.
- π§ͺ A dry-run mode that shows what would be deleted.
- π Instructions for adding it to your project Git repo with
.gitignorebest practices.
