How do i compile my client without the server rpc functions installed

I’ve already compiled the unreal engine from source code, so i already have the option to compile a dedicated server and a client only build.

How do i compile a client without the client having the server functions installed on there machine??
also is there a way for me to compile my client and skip certain cpp/header files?

Thanks -