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

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

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

`object action.delete(array actionIds)`

This method allows to delete actions.

::: noteclassic
This method is only available to *Admin* and *Super admin*
user types. Permissions to call the method can be revoked in user role
settings. See [User
roles](/manual/web_interface/frontend_sections/administration/user_roles)
for more information.
:::

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

[comment]: # ({f66aff82-f66aff82})
### Paraméterek

"(tömb)" A törölni kívánt műveletek azonosítói.

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

[comment]: # ({04c6deae-04c6deae})
### Visszatérési értékek

`(object)` Egy objektumot ad vissza, amely tartalmazza a törölt műveletek azonosítóit
az `actionids` tulajdonság alatt.

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

[comment]: # ({b41637d2-b41637d2})
### Példák

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

[comment]: # ({e0c0b383-36abb590})
#### Delete multiple actions

Delete two actions.

Request:

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

Response:

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

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

[comment]: # ({70602a31-70602a31})
### Forrás

CAction::delete() az *ui/include/classes/api/services/CAction.php*-ban.

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