[comment]: # translation:outdated

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

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

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

`object action.delete(array actionIds)`

此方法用于删除动作。

::: noteclassic
此方法只有 *Admin(管理员)* 和 *Super admin(超级管理员)* 用户可用。可以在用户角色设置中撤销调用该方法的权限。更多信息请查看[用户角色](/manual/web_interface/frontend_sections/administration/user_roles)。
:::

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

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

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

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

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

`(object)` 返回一个对象，该对象在 `actionids` 属性下包含要删除动作的 ID。

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

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

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

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

删除两个动作。

请求：

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

响应：

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

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

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

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

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