[ ########-####-####-####-#######] Cannot delete organization VDC network <network name> (########-####-####-####-########)Cannot detach organization VDC network <network name> ((########-####-####-####-########)) from edge <edge name>- Bad Request: Invalid Configuration. To deploy NSX Edge appliances, at-least one Vnic must be configured and must be connected to a valid portgroup., error code 10166VMware Cloud Director 10.6.1
This issue occurs as the network cannot detach itself from the edge gateway successfully during the deletion attempt.
To resolve this issue delete the network via API Explorer as outlined in Deleting an Organization VDC network using VMware Cloud Director API