top of page

BAT file to help delete generated project files

6 days ago
1 min read

Updated: 2 days ago

You can use this bat file to help delete the generated project files (such as binaries and intermidiate) by double clicking it.


I used this during my early days of learning to program UE c++ as i would sometimes break things and a clean compile was helpful.


It just needs to be in the same directory as your project.


This is the code. You need to make a new file and save it as a .bat file

REM ---Cleanup Binaries---
IF EXIST "Binaries" (
rmdir /Q /S Binaries
)

REM ---Cleanup Build---  remove rem here if you want to empty your builds folder. i do the builds for my team so i want to keep them.
REM IF EXIST "Build" (
REM rmdir /Q /S Build
REM )

REM ---Cleanup DerivedDataCache---
IF EXIST "DerivedDataCache" (
rmdir /Q /S DerivedDataCache
)

REM ---Cleanup Intermediate---
IF EXIST "Intermediate" (
rmdir /Q /S Intermediate
)

REM ---Cleanup Releases---
IF EXIST "Releases" (
rmdir /Q /S Releases
)

REM ---Cleanup Saved---
REM IF EXIST "Saved" (
REM rmdir /Q /S Saved
REM )

Comments


bottom of page