[comment]: # translation:outdated

[comment]: # ({f125871b-f125871b})
# drule.delete

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

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

`object drule.delete(array discoveryRuleIds)`

This method allows to delete discovery rules.

::: 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-2430e072})

[comment]: # ({5b654054-5b654054})
### Paraméterek

"(tömb)" A törlendő felfedezési szabályok azonosítói.

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

[comment]: # ({35b8a89c-35b8a89c})
### Visszatérési értékek

`(objektum)` A törölt felfedezés azonosítóit tartalmazó objektumot ad vissza
szabályokat a `druleids` tulajdonság alatt.

[comment]: # ({/35b8a89c-35b8a89c})

[comment]: # ({b41637d2-b41637d2})
### Példák

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

[comment]: # ({58bf873c-4df0ae86})
#### Több felderítési szabály törlése

Töröljön két felfedezési szabályt.

Kérés:

``` json
{
    "jsonrpc": "2.0",
    "method": "drule.delete",
    "params": [
        "4",
        "6"
    ],
    "auth": "3a57200802b24cda67c4e4010b50c065",
    "id": 1
}
```

Válasz:

``` json
{
    "jsonrpc": "2.0",
    "result": {
        "druleids": [
            "4",
            "6"
        ]
    },
    "id": 1
}
```

[comment]: # ({/58bf873c-4df0ae86})

[comment]: # ({89517129-89517129})
### Forrás

CDRule::delete() az *ui/include/classes/api/services/CDRule.php*-ban.

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