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

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

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

`object action.delete(array actionIds)`

此方法允许对 delete 操作。

::: noteclassic
此方法仅对 *Admin* 和 *Super admin* 用户类型可用。
可以在用户角色设置中撤销调用该方法的权限。更多信息请参见
[User
roles](/manual/web_interface/frontend_sections/users/user_roles)。
:::

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

[comment]: # ({f66aff82-f66aff82})
### 参数

`(array)` 要删除的操作的动作ID。

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

[comment]: # ({04c6deae-04c6deae})
### 返回值

`(object)` 返回一个 object，其中包含在 `actionids` 属性下删除的操作的 ID。

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

[comment]: # ({b41637d2-b41637d2})
### 示例

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

[comment]: # ({b1f7d266-36abb590})
#### 删除多个动作

删除两个动作。

[执行请求](/manual/api#执行请求):


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


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

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

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

CAction::delete() 在 *ui/include/classes/api/services/CAction.php* 中。

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