Can I safely remove dependencies after installing from GitHub?

Hello there.
I downloaded the Unreal Engine source code and now I am building and installing it on my Manjaro Linux machine. Usually I have a lot of disk space on my hard drive, but going through the setup process and your setup guide I realized that the source, the project files and the binaries were half of the amount of the disk space the engine occupied. The rest were just the dependencies used for the engine to be built using make or cmake. These dependencies are a shitload of gigabytes and I want to remove them after the installation is done and leave only the source code of the engine and the binaries. I would be glad if you tell me which files are dependencies and which are the source and binary so I can manually and safely remove the make dependencies after the installation is complete. Thank you in advance.

I don’t know if you still need an answer on this or not, but using this tool to build a binary version worked for me
https://forums.unrealengine.com/development-discussion/engine-source-github/105030-tool-create-your-own-binary-build-for-your-team