[comment]: # ({8bad5a25-efd33197})
# discoveryruleprototype.delete

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

[comment]: # ({3aa0a68b-030c03bb})
### Description

`object discoveryruleprototype.delete(array lldRuleIds)`

This method allows to delete LLD rule 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/users/user_roles)
for more information.
:::

[comment]: # ({/3aa0a68b-030c03bb})

[comment]: # ({5d13f9ca-a7783703})
### Parameters

`(array)` IDs of the LLD rule prototypes to delete.

[comment]: # ({/5d13f9ca-a7783703})

[comment]: # ({1e498956-af57e977})
### Return values

`(object)` Returns an object containing the IDs of the deleted LLD rule prototypes
under the `ruleids` property.

[comment]: # ({/1e498956-af57e977})

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

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

[comment]: # ({67e1d3e9-ec7dac5f})
#### Deleting multiple LLD rule prototypes

Delete two LLD rule prototypes.

[Request](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "discoveryruleprototype.delete",
    "params": [
        "47252",
        "47253"
    ],
    "id": 1
}
```

Response:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "ruleids": [
            "47252",
            "47253"
        ]
    },
    "id": 1
}
```

[comment]: # ({/67e1d3e9-ec7dac5f})

[comment]: # ({5c01c3dd-8d10a278})
### Source

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

[comment]: # ({/5c01c3dd-8d10a278})
