[comment]: # ({293a482d-293a482d})
# discoveryrule.delete

[comment]: # ({/293a482d-293a482d})

[comment]: # ({b4cf8561-1760a96c})
### Description

`object discoveryrule.delete(array lldRuleIds)`

This method allows to delete LLD rules.

[comment]: # ({/b4cf8561-1760a96c})

[comment]: # ({27340eaa-27340eaa})
### Parameters

`(array)` IDs of the LLD rules to delete.

[comment]: # ({/27340eaa-27340eaa})

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

`(object)` Returns an object containing the IDs of the deleted LLD rules
under the `itemids` property.

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

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

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

[comment]: # ({98660baf-98660baf})
#### Deleting multiple LLD rules

Delete two LLD rules.

Request:

``` {.java}
{
    "jsonrpc": "2.0",
    "method": "discoveryrule.delete",
    "params": [
        "27665",
        "27668"
    ],
    "auth": "3a57200802b24cda67c4e4010b50c065",
    "id": 1
}
```

Response:

``` {.java}
{
    "jsonrpc": "2.0",
    "result": {
        "ruleids": [
            "27665",
            "27668"
        ]
    },
    "id": 1
}
```

[comment]: # ({/98660baf-98660baf})

[comment]: # ({e20377be-76a51bc0})
### Source

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

[comment]: # ({/e20377be-76a51bc0})
