[comment]: # ({7cbac97f-7cbac97f})
# report.delete

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

[comment]: # ({acb60529-c6ffcbad})
### 描述

`object report.delete(array reportids)`

此方法允许delete计划报告。

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

[comment]: # ({/acb60529-c6ffcbad})

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

(array) 要删除的预定报告的 IDs。

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

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

`(object)` 返回一个 object，其中包含在 `reportids` 属性下列出的已删除计划报告的 ID。

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

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

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

[comment]: # ({1a799b75-71c35868})
#### 删除多个计划报告

删除两个预定报告。

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


```json
{
    "jsonrpc": "2.0",
    "method": "report.delete",
    "params": [
        "1",
        "2"
    ],
    "id": 1
}
```
响应：


```json
{
    "jsonrpc": "2.0",
    "result": {
        "reportids": [
            "1",
            "2"
        ]
    },
    "id": 1
}
```

[comment]: # ({/1a799b75-71c35868})

[comment]: # ({3c3c511e-3c3c511e})
### 来源

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

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