Skip to content

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.

Notifications You must be signed in to change notification settings

CasulScrub/CleanUnrealProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🧹 CleanUnrealProject.bat

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.

πŸš€ What It Does

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.

πŸ“¦ Usage

  1. Copy CleanUnrealProject.bat into the root of your Unreal Engine project.
  2. Double-click it, or run it from the command line:
    CleanUnrealProject.bat

image

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 .gitignore best practices.

⚠️ Warning This script permanently deletes folders that Unreal Engine and IDEs regenerate automatically. Make sure you're not storing any custom or uncommitted files in those folders before running it.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published