NSX-T Data Center REST API

Delete a Logical Switch (Deprecated)

Removes a logical switch from the associated overlay or VLAN transport
zone. By default, a logical switch cannot be deleted if there are logical
ports on the switch, or it is added to a NSGroup.
Cascade option can be used to delete all ports and the logical switch.
Detach option can be used to delete the logical switch forcibly. This api is now deprecated.
Please use new api - /infra/segments/<segment-id>

Request:

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

Example Request:

DELETE https://<nsx-mgr>/api/v1/logical-switches/92225022-a786-4c7d-91d1-1f9afa6deebe

Successful Response:

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

Required Permissions:

crud

Feature:

switching_switches

Additional Errors: