[comment]: # ({3d0c523c-3d0c523c})
# action.delete

[comment]: # ({/3d0c523c-3d0c523c})

[comment]: # ({fd1336f0-c056f978})
### Apraksts

`object action.delete(array actionIds)`

Šī metode ļauj dzēst darbības.

::: 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]: # ({/fd1336f0-c056f978})

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

`(array)` dzēšamo darbību ID.

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

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

`(object)` Atgriež objektu, kas satur dzēsto darbību ID
īpašībā `actionids`.

[comment]: # ({/04c6deae-04c6deae})

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

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

[comment]: # ({b1f7d266-36abb590})
#### Dzēst vairākas darbības

Dzēst divas darbības.

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

```json
{
    "jsonrpc": "2.0",
    "method": "action.delete",
    "params": [
        "17",
        "18"
    ],
    "id": 1
}
```

Atbilde:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "actionids": [
            "17",
            "18"
        ]
    },
    "id": 1
}
```

[comment]: # ({/b1f7d266-36abb590})

[comment]: # ({70602a31-70602a31})
### Avots

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

[comment]: # ({/70602a31-70602a31})
