Reducing the size of UE5 source build

I use a UE source build, solely because it’s required to make PS4/PS5 games. I don’t make frequent changes to the source build – maybe a few times per year at most. The UnrealEngine folder is 370GB currently, leaving me with <30GB on my PC, so I’m looking for ways to reduce the size.

Some ideas I’ve seen:

  • Delete .git folder: We don’t switch back to previous UE versions once we upgrade, so this seems viable.
  • Create an Installed Build: This seems like the best option if it’s applicable to my circumstances (building to PS4/PS5, and having some custom plugins in UnrealEngine\Engine\Plugins). If so, I’d appreciate specific instructions/the exact command to run. [sources: 1, 2]

I’d appreciate feedback on these ideas, and/or any additional recommendations to free up space in my circumstances.