Mac Mojave, how to remove Safari
The correct answer in this case is "Don't do that; you're asking for trouble." Safari is heavily integrated into the OS. Removing/disabling Safari is bound to eventually get you into a situation where an API malfunctions and you'll drive the poor person trying to help you insane.

I dare ask why you would want to remove Safari given that there is no advantage in doing so. You can remove IE from Windows or bash from a Linux distro, but the 26 MB you'll save won't be worth the anguish of having macOS eat its tail at some point down the road.