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
+
LogicalPortDeleteParameters
(
schema
)
Name
Description
Type
Notes
detach
force delete even if attached or referenced by a group
If this is set to true, then logical port is deleted
regardless of whether it has attachments, or it is added to
any NSGroup.
boolean
Default: "False"
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:
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
500 Internal Server Error
503 Service Unavailable