I recently ran in to a problem where i couldnt delete an NSX segment so i went exploring the API. The API guide can be found here
The method used is delete policy/api/v1/infra/segments/{segment-id}?force=true
It would look like this in Postman:
To list the segments we can use a get request towards /policy/api/v1/infra/segments/