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

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

[comment]: # ({b7804963-b7804963})
### Description

`object drule.delete(array discoveryRuleIds)`

This method allows to delete discovery rules.

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

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

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

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

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

`(object)` Returns an object containing the IDs of the deleted discovery
rules under the `druleids` property.

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

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

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

[comment]: # ({4df0ae86-4df0ae86})
#### Delete multiple discovery rules

Delete two discovery rules.

Request:

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

Response:

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

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

[comment]: # ({eedba473-eedba473})
### Source

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

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