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

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

[comment]: # ({c7f8fca3-24398e69})
### 描述

`object map.delete(array mapIds)`

此方法允许删除拓扑图。

::: noteclassic
此方法适用于任何类型的用户。调用该方法的权限可以在用户角色设置中撤销。请参阅[用户角色](/manual/web_interface/frontend_sections/users/user_roles)了解更多信息。
:::

[comment]: # ({/c7f8fca3-24398e69})

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

`(array)` 要删除的拓扑图的id列表.

[comment]: # ({/57a8b77a-57a8b77a})

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

返回包含"sysmapid"属性下的已删除拓扑图的IDs的对象。

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

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

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

[comment]: # ({4cd159b0-87539545})
#### 删除多个拓扑图

删除2个拓扑图。

[请求](/manual/api#performing-requests)：

```json
{
    "jsonrpc": "2.0",
    "method": "map.delete",
    "params": [
        "12",
        "34"
    ],
    "id": 1
}
```

响应：

```json
{
    "jsonrpc": "2.0",
    "result": {
        "sysmapids": [
            "12",
            "34"
        ]
    },
    "id": 1
}
```

[comment]: # ({/4cd159b0-87539545})

[comment]: # ({4880bc2b-4880bc2b})
### 来源

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

[comment]: # ({/4880bc2b-4880bc2b})
