Below error is encountered when trying to delete the Edge Gateway from vCD UI and thereafter, Org vDC needs to be removed.
Details: [ xxxxxx-xxxx-xxxx-xxxx-xxxxxxxx] Deletion of edge gateway <Edge_Gateway_Name> failed. - Bad Request: Failed to delete Edge vnic, please check the Edge VM power status, the root cause is : , error code 10157
Debug:
com.vmware.vcloud.api.presentation.service.BadRequestException: Deletion of edge gateway <Edge_Gateway_Name> failed.
at com.vmware.vcloud.networking.model.edge.nsxv.NsxVEdge.undeployAndDelete(NsxVEdge.java:412)
..
..
..
..
Caused by: com.vmware.vcloud.common.network.VsmException: Bad Request: Failed to delete Edge vnic, please check the Edge VM power status, the root cause is : , error code 10157
VMware Cloud Director 10.6.x
This is due the stale entries in the vCD database for that specific Edge.
To resolve this issue, modification of the Cloud Director database is required.
For assistance, contact Broadcom Support and note this Article ID (421500) in the problem description. For more information, see this article: