[comment]: # translation:outdated

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

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

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

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

`(array)` ID delle azioni da eliminare.

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

[comment]: # ({new-04c6deae})
### Return values

`(object)` Returns an object containing the IDs of the deleted actions
under the `actionids` property.

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

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

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

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

Delete two actions.

Request:

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

Response:

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

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

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

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

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