[comment]: # ({dd2b9519-dd2b9519})
# host.delete

[comment]: # ({/dd2b9519-dd2b9519})

[comment]: # ({54a621a8-54a621a8})
### Description

`object host.delete(array hosts)`

This method allows to delete hosts.

[comment]: # ({/54a621a8-54a621a8})

[comment]: # ({cede3d95-cede3d95})
### Parameters

`(array)` IDs of hosts to delete.

[comment]: # ({/cede3d95-cede3d95})

[comment]: # ({54b4a855-54b4a855})
### Return values

`(object)` Returns an object containing the IDs of the deleted hosts
under the `hostids` property.

[comment]: # ({/54b4a855-54b4a855})

[comment]: # ({b41637d2-b41637d2})
### Examples

[comment]: # ({/b41637d2-b41637d2})

[comment]: # ({ef767d02-ef767d02})
#### Deleting multiple hosts

Delete two hosts.

Request:

``` {.java}
{
    "jsonrpc": "2.0",
    "method": "host.delete",
    "params": [
        "13",
        "32"
    ],
    "auth": "038e1d7b1735c6a5436ee9eae095879e",
    "id": 1
}
```

Response:

``` {.java}
{
    "jsonrpc": "2.0",
    "result": {
        "hostids": [
            "13",
            "32"
        ]
    },
    "id": 1
}
```

[comment]: # ({/ef767d02-ef767d02})

[comment]: # ({cb2363cb-cb2363cb})
### Source

CHost::delete() in
*frontends/php/include/classes/api/services/CHost.php*.

[comment]: # ({/cb2363cb-cb2363cb})
