And the returned ID will be useful now. Let's delete the host we just created:
$ json='{"jsonrpc":"2.0","method":"host.delete","params":["10277"],"auth":"df83119ab78bbeb2065049412309f9b4","id":1}'
Make sure the host ID in this request is the same as what was returned in the previous request; otherwise, a different host could be deleted.
Run the curl command again. The host should be successfully deleted:
{"jsonrpc":"2.0","result":{"hostids":["10277"]},"id":1}