It is impossible to remove host using documentation:
curl -i -X POST -H 'Content-Type:application/json' -d'{"jsonrpc": "2.0", "method":"user.login", "params":{"user":"Admin", "password":"zabbix"},"auth": null,"id":0}' http://10.211.55.82/api_jsonrpc.php curl -i -X POST -H 'Content-Type:application/json' -d'{"jsonrpc": "2.0", "method":"host.get", "params":{"hostids": [10105]},"auth": "50d108274c70ad23ef4b519b37ef9dcf","id":0}' http://10.211.55.82/api_jsonrpc.php curl -i -X POST -H 'Content-Type:application/json' -d'{"jsonrpc": "2.0", "method":"host.delete", "params":{"hostids": [10105]},"auth": "50d108274c70ad23ef4b519b37ef9dcf","id":0}' http://10.211.55.82/api_jsonrpc.php curl -i -X POST -H 'Content-Type:application/json' -d'{"jsonrpc": "2.0", "method":"host.massremove", "params":{"hostids": [10105]},"auth": "50d108274c70ad23ef4b519b37ef9dcf","id":0}' http://10.211.55.82/api_jsonrpc.php
host.delete error: No permissions to referred object or it does not exist!
host.massremove no errors: "result":
but host still in the system.