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

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

[comment]: # ({7e4554a3-7e4554a3})
### Description

`object action.delete(array actionIds)`

This method allows to delete actions.

[comment]: # ({/7e4554a3-7e4554a3})

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

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

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

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

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

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

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

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

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

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

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

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