In NSX-T Federation, the Global Manager can be used to create and delete segments and changes are propagated to Local Managers.
Segments in UI show Status: "Delete in Progress" when mousing over Segment name.
VMware NSX-T Data Center
VMware NSX-T Data Center 3.x
1. Confirm in LM UI that there are no ports in use with the Logical Switch which was not deleted
2. To remove the Logical Switch, SSH to a Local Manager node
3. Run get logical-switches on the Local Manager CLI and confirm the stale Logical Switch is listed, and note its UUID
4. Elevate to root shell with st en
5. Confirm the Logical Switch info can be polled with API:
curl -k -v -H "Content-Type:application/json" -u admin -X GET "https://{mgr_IP}/api/v1/logical-switches/(LS_UUID)"
6. Remove stale Logical Switch objects via API:
curl -k -v -H "Content-Type:application/json" -H "X-Allow-Overwrite:true" -u admin -X DELETE "https://{mgr_IP}/api/v1/logical-switches/{LS_UUID}?cascade=true&detach=true"
This will return '200' response code if deletion is successful
7. Once Logical Switch is removed from Local Manager in question, confirm Segment is automatically deleted in Local Manager and Global Manager UI
8. Perform a sync between the GM and each local manager, using the following API:
POST https://localhost/policy/api/v1/infra/full-sync-action?action=request_notifications_full_sync