I have never used XMLRPC for any activity for my WordPress sites and also not going to do so.
There are many articles on disabling XMLRPC on your site for additional security. In the use case scenario that I discussed when if that service is not required, why to disbale it or make it more secure ? I just wish to simply delete the xmlrpc.php. Will it cause any errors if I delete it ?
I have never used XMLRPC for any activity for my WordPress sites and also not going to do so.
There are many articles on disabling XMLRPC on your site for additional security. In the use case scenario that I discussed when if that service is not required, why to disbale it or make it more secure ? I just wish to simply delete the xmlrpc.php. Will it cause any errors if I delete it ?
You shouldn't delete that file - it will be restored after update - so deleting it makes no sense (and it shouldn't be treated as security fix).
You can disable XMLRPC using filter:
add_filter('xmlrpc_enabled', '__return_false');
And even block access to that file. Below code for Apache (sandrodz showed code for nginx):
<Files xmlrpc.php>
Order deny,allow
Deny from all
</Files>
As mentioned in comments, if you delete the file, updating WP will bring it back.
It is best to block it at server level.
In nginx
I do following:
# Disable xmlrpc.php it is being abused by script kiddies
location ~ xmlrpc.php {
deny all;
access_log off;
log_not_found off;
return 444;
}