In reply to Christine.

Hello Christine, that's not a good idea since it may break another WP functionality. You can always deactivate XML RPC using a plugin or a hook in the functions.php file. By far, if you dont want to mess with PHP, the best and simpler approach is installing Disable XML RPC plugin: