Is there any way to reduce the install size?

I just compiled UE 4.24 following the official guide on Linux Mint. After I finished I looked at the folder and I observed that the folder is 71 GB.

My curiosity is if is there any way to auto-clean or to delete only the source code?

The main space eater are object files, they are always keeped to allow do small changes to a code without need to recompile entire program, but they contain mote thigns then just fragmented unlinked machine code so they take hell more space then final dlls and exes and UE4 is massive. So be sure you won’t need to preform any engine compilation anymore before cleaning, because if you clean it you will need to compile entire engine again to compile anything.

I didn’t do Linux UE4 build yet, but by look of it it uses normal “make” command. In that case (and this works with any program compiled using make and make too) do make clean in same place you executed make

I tried make clean , but it had given me an error make: *** No rule to make target 'clean'. Stop.