When deleting a vDC, there are many potential child objects that generate dependencies - if any of these exist, then attempting to delete the vDC will result in a variety of errors. You will need to use trial/error to build out a workflow that checks for all of these prior to attempting the actual delete vDC operation. I had done such a workflow for vCD 1.0, but never bothered to update it to 1.5 or 5.1 as other projects have taken priority.
↧