How can I reduce the space used by the Engine?

I just downloaded and installed UE 4.21.1 from Github. I had to download it, compile it, etc. My main problem is that the folder where the Engine is located occupies 60 GB of memory, which seems ridiculous. I will not be accessing the source of the Engine, so I believe there are a lot of intermediate or object files I can delete. What files could I delete or what could I do to make it use less space?

EDIT: Although its in the topic, I’m using Linux (Ubuntu).

Just run “Clean Solution” in VS project it should delete all object files. other space taker are PDB files in binary forder but those are useful in debugging, but you can delete once that dont involve UE4Editor. Still if you use C++ in source build engine it will build the engine with your project, so you wont run away from that.

I’m not using Visual Studio, I’m in Linux. But does it really need 60GB? I’ve seen people complaining about 20 or 30GB in Linux, but I’ve never heard of 60.

There seems not to be a clean target in the makefile. Not sure if UBT has a command line argument to clean up the intermediates.
You could remove intermediate files manually using:

find . -type d -name Intermediate -print | xargs rm -rf
find . -type d -name Saved -print | xargs rm -rf

But as already mentioned they will be regenerated at least partially on your next build. (My engine folder for 4.17 is using 62 GB as well.)

Heres a forum answer to this topic, you can not delete everything within the intermediate folders:

https://forums.unrealengine.com/development-discussion/engine-source-github/38225-which-project-folders-are-important