I removed majority of plugins, reverted the addition of Datasmith stuff and manually patched the unreal build program (I deleted all the source files and commented out code) to not look for and not generate binaries for any platforms I am not touching (XR, VR, iOS, etc) specially the WEB stuff.
I think I removed tens of thousands of files, even before making a first binary build.
I think Unity engine has a modular installer nowadays, Unreal only let us select platforms if you are installing from launcher and that doesn’t help much.