Simple npm script to clean Intermediate, Saved folders, and .pdbs from unreal projects and plugins for release preparation.
- Install nodejs
- Navigate to ue4 project of choice and open a powershell window there
npm i clean-ue4
cd node_modules
node clean-ue4
this will give you usage instructions
git clone https://github.com/getnamo/clean-ue4.git
cd clean-ue4
npm i
node clean-ue4
this will give you usage instructions
Format is
node clean-ue4 --p <path>
where path should only be auto
unless you use -u
, then path can be anything.
You'll need one of the following options
-i
for intermediate folders
-s
for saved folder
-b
for *.pdb files
-c
for custom pattern, can use multiple e.g. -c /Plugins/MyFolder -c /Plugins/MyOtherFolder
e.g. for everything
node clean-ue4 --p ../ -i -s -b
You'll be prompted to confirm the delete patterns with a y
or n
.
To see what would've gotten deleted without doing it add -d
which stands for dry run.
To auto-confirm delete prompt use -y
If you want to redirect script to another path you need to add -u
to add unrestricted path mode (not recommended).
If you're comfortable with the files it deletes
do
node clean-ue4 -x
I would recommend doing a dry run first...
node clean-ue4 --x -d
Click on the FullCleanForRelease.bat.