Yesterday I was trying to delete an Org vDC from vCloud Air portal and it was failing time and again. On checking vCloud Director in backend I was seeing error “Cannot delete VDC“
When I tried deleting it directly from vCD, it was bitching about some expired vApp templates and was asking to remove them first.
On checking the Expired items tab, I found that there were few expired vApps
When I tried deleting them, the operation failed with error
1 |
The requested operation could not be executed on VM "VMTest1(com.vmware.vcloud.entity.vm:c8439077-3148-4487-b268-32c8af845108)". Stop the VM and try again |
Similar error I was seeing in vCD UI.
I tried deleting it via API as GUI was not behaving like a good friend.
Fired below API
# curl -sik -H “Accept:application/*+xml;version=5.6” -H “x-vcloud-authorization:Auth” -X DELETE https://us-california-1-3.vchs.vmware.com/api/compute/api/vApp/vapp-63592b99-fe00-41f3-bfbd-dbe27d3e9258… Read More