[comment]: # translation:outdated

[comment]: # ({8f15992f-8f15992f})
# hostprototype.delete

[comment]: # ({/8f15992f-8f15992f})

[comment]: # ({new-f7c792a6})
### Description

`object hostprototype.delete(array hostPrototypeIds)`

This method allows to delete host prototypes.

::: noteclassic
This method is only available to *Admin* and *Super admin*
user types. Permissions to call the method can be revoked in user role
settings. See [User
roles](/manual/web_interface/frontend_sections/administration/user_roles)
for more information.
:::

[comment]: # ({/new-f7c792a6})

[comment]: # ({65284f99-65284f99})
### Parametri

`(array)` ID dei prototipi host da eliminare.

[comment]: # ({/65284f99-65284f99})

[comment]: # ({new-78e6f07c})
### Return values

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

[comment]: # ({/new-78e6f07c})

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

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

[comment]: # ({new-48be53a2})
#### Deleting multiple host prototypes

Delete two host prototypes.

Request:

``` {.java}
{
    "jsonrpc": "2.0",
    "method": "hostprototype.delete",
    "params": [
        "10103",
        "10105"
    ],
    "auth": "3a57200802b24cda67c4e4010b50c065",
    "id": 1
}
```

Response:

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

[comment]: # ({/new-48be53a2})

[comment]: # ({dd993f84-dd993f84})
### Fonte

CHostPrototype::delete() in
*ui/include/classes/api/services/CHostPrototype.php*.

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