VMware NSX-T Data Center
Workaround 1:
Workaround 2:
If the delete icon is greyed out in NSX GUI we need to run the below API call in any one of the NSX manager node:
To obtain the details of the logical switch:curl -k -X -H "Content-Type: application/json" -H "X-Allow-Overwrite: true" GET https://localhost/api/v1/logical-switches/<UUID of logical switch> -u admin
To delete the logical switch: curl -k -X -H "Content-Type: application/json" -H "X-Allow-Overwrite: true" DELETE https://localhost/api/v1/logical-switches/<UUID of logical switch> -u admin