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

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

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

`object trigger.delete(array triggerIds)`

This method allows to delete triggers.

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

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

`(array)` IDs of the triggers to delete.

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

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

`(object)` Returns an object containing the IDs of the deleted triggers
under the `triggerids` property.

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

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

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

[comment]: # ({752e2ebb-752e2ebb})
#### Delete multiple triggers

Delete two triggers.

Request:

``` {.java}
{
    "jsonrpc": "2.0",
    "method": "trigger.delete",
    "params": [
        "12002",
        "12003"
    ],
    "auth": "3a57200802b24cda67c4e4010b50c065",
    "id": 1
}
```

Response:

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

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

[comment]: # ({71b14113-71b14113})
### Source

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

[comment]: # ({/71b14113-71b14113})
