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

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

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

`object discoveryrule.delete(array lldRuleIds)`

Ta metoda pozwala na usuwanie reguł LLD.

::: noteclassic
Ta metoda jest dostępna tylko dla użytkowników typu *Admin* i *Super admin*. Uprawnienia do wywołania metody można odwołać w ustawieniach
roli użytkownika. Więcej informacji można znaleźć w [User
roles](/manual/web_interface/frontend_sections/users/user_roles).
:::

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

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

`(array)` Identyfikatory IDs reguł LLD do usunięcia.

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

[comment]: # ({36803485-ae1ac187})
### Zwracane wartości

`(object)` Zwraca obiekt zawierający identyfikatory usuniętych reguł LLD
we właściwości `ruleids`.

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

[comment]: # ({b41637d2-b41637d2})
### Przykłady

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

[comment]: # ({a2d19e6d-98660baf})
#### Usuwanie wielu reguł LLD

Usuń dwie reguły LLD.

[Żądanie](/manual/api#performing-requests):

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

Odpowiedź:

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

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

[comment]: # ({76a51bc0-76a51bc0})
### Źródło

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

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