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

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

[comment]: # ({88b5ebf1-2430e072})
### Apraksts

`object drule.delete(array discoveryRuleIds)`

Šī metode ļauj dzēst atklāšanas noteikumus.

::: 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]: # ({/88b5ebf1-2430e072})

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

`(array)` atklāšanas noteikumu ID, ko dzēst.

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

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

`(object)` Atgriež objektu, kas satur dzēsto atklāšanas
noteikumu ID zem `druleids` īpašības.

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

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

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

[comment]: # ({615d2e2f-4df0ae86})
#### Dzēst vairākus atklāšanas noteikumus

Dzēsiet divus atklāšanas noteikumus.

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

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

Atbilde:

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

[comment]: # ({/615d2e2f-4df0ae86})

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

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

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