You must disable the virtual datacenter before you can delete it.
This operation is asynchronous and returns a task that you can monitor to track the progress of the request.