Management Plane API > Networking > Logical Routing And Services > Logical Routers

Delete a Logical Router

Deletes the specified logical router. You must delete associated logical
router ports before you can delete a logical router. Otherwise use force
delete which will delete all related ports and other entities associated
with that LR. To force delete logical router pass force=true in query param.

Request:

Method:
DELETE
URI Path(s):
/api/v1/logical-routers/<logical-router-id>
Request Headers:
n/a
Query Parameters:
LogicalRouterDeleteRequestParameters+
Request Body:
n/a

Example Request:

DELETE https://<nsx-mgr>/api/v1/logical-routers/f962173f-ac03-4d08-8366-56a41779f61d DELETE https://<nsx-mgr>/api/v1/logical-routers/f962173f-ac03-4d08-8366-56a41779f61d?force=true

Successful Response:

Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a

Required Permissions:

crud

Feature:

routing_routers

Additional Errors: