[comment]: # ({bce5854d-bce5854d})
# trigger.delete

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

[comment]: # ({2770f7e5-adb8b388})
### Apraksts

`object trigger.delete(array triggerIds)`

Šī metode ļauj dzēst trigerus.

::: 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]: # ({/2770f7e5-adb8b388})

[comment]: # ({fc913e85-fc913e85})
### Parametri

`(array)` dzēšamo trigeru ID.

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

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

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

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

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

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

[comment]: # ({9186c860-752e2ebb})
#### Dzēst vairākus trigerus

Dzēst divus trigerus.

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

```json
{
    "jsonrpc": "2.0",
    "method": "trigger.delete",
    "params": [
        "12002",
        "12003"
    ],
    "id": 1
}
```

Atbilde:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "triggerids": [
            "12002",
            "12003"
        ]
    },
    "id": 1
}
```

[comment]: # ({/9186c860-752e2ebb})

[comment]: # ({087c0548-087c0548})
### Avots

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

[comment]: # ({/087c0548-087c0548})
