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

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

[comment]: # ({e3f7b3a0-1760a96c})
### Apraksts

`object discoveryrule.delete(array lldRuleIds)`

Šī metode ļauj dzēst LLD kārtulas.

::: noteclassic
Šī metode ir pieejama tikai *Admin* un *Super admin*
lietotāju tipiem. Atļaujas izsaukt šo metodi var tikt atsauktas lietotāja lomas
iestatījumos. Plašāku informāciju skatiet [Lietotāju
lomas](/manual/web_interface/frontend_sections/users/user_roles).
:::

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

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

`(array)` dzēšamo LLD noteikumu ID.

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

[comment]: # ({36803485-ae1ac187})
### Atgrieztās vērtības

`(object)` Atgriež objektu, kas satur dzēsto LLD noteikumu ID zem `ruleids` īpašības.

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

[comment]: # ({b41637d2-b41637d2})
### Piemēri

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

[comment]: # ({a2d19e6d-98660baf})
#### Vairāku LLD noteikumu dzēšana

Dzēsiet divus LLD noteikumus.

[Pieprasījums](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "discoveryrule.delete",
    "params": [
        "27665",
        "27668"
    ],
    "id": 1
}
```

Atbilde:

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

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

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

CDiscoveryRule::delete() failā
*ui/include/classes/api/services/CDiscoveryRule.php*.

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