Management Plane API > Networking > Logical Switching > Logical Switch Ports

Delete a Logical Port

Deletes the specified logical switch port. By default, if logical port has
attachments, or it is added to any NSGroup, the deletion will be failed.
Option detach could be used for deleting logical port forcibly.

Request:

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

Example Request:

DELETE https://<nsx-mgr>/api/v1/logical-ports/95a93e66-4fb1-4f7d-9484-1c8fd521e741

Successful Response:

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

Required Permissions:

crud

Feature:

switching_ports

Additional Errors: