
# 路由器删除接口
#### 功能介绍
删除路由器接口，该操作将会删除port。
接口约束：
如果该子网上还有负载均衡器对象，不允许删除路由器接口。
#### 调试
您可以在[API Explorer](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=VPC&version=v2&api=NeutronRemoveRouterInterface)中调试该接口。
#### URI
PUT /v2.0/routers/{router_id}/remove_router_interface
#### 请求参数
表1请求参数 
| 参数名称      | 类型     | 必选 | 说明                                                                                                           |
|:---|:---|:---|:---|
| subnet_id | String | 否  | 子网ID，subnet_id和port_id参数二选一。 使用子网的gateway IP地址来创建路由器接口。 |
| port_id   | String | 否  | 端口ID，port_id和subnet_id参数二选一，使用端口的IP地址创建路由器接口。                                                                |
   
#### 请求示例
路由器删除接口，路由器id为b625c58c-0cfe-49e0-acc8-f2374f8187ff，子网id为4b910a10-0860-428b-b463-d84dbc5e288e。
```
PUT https://{Endpoint}/v2.0/routers/b625c58c-0cfe-49e0-acc8-f2374f8187ff/remove_router_interface
{"subnet_id": "4b910a10-0860-428b-b463-d84dbc5e288e"}
```
#### 响应参数
表2响应参数 
| 参数名称       | 类型     | 说明    |
|:---|:---|:---|
| subnet_id  | String | 子网ID  |
| tenant_id  | String | 项目ID  |
| project_id | String | 项目ID  |
| port_id    | String | 端口ID  |
| id         | String | 路由器ID |
   
#### 响应示例
```
{
  "subnet_id": "4b910a10-0860-428b-b463-d84dbc5e288e",
  "tenant_id": "3d72597871904daeb6887f75f848b531",
  "project_id": "3d72597871904daeb6887f75f848b531",
  "port_id": "34d7d063-8f40-4958-b420-096db40d4067",
  "id": "b625c58c-0cfe-49e0-acc8-f2374f8187ff"
}
```
#### 状态码
请参见[状态码](https://support.huaweicloud.com/api-vpc/vpc_api_0002.html)。
#### 错误码
请参见[错误码](https://support.huaweicloud.com/api-vpc/vpc_api_0003.html)。
