Using Nutanix API, I detached a disk from a VM by just specifying device_bus and device_index. The disk was attached from a passthru external repository. After detaching the disk, I tries to delete the external repository, I got the following response message from delete external repository API:
"The external repository hsing-ahv-test-repo hosts some virtual disks that are still in use"
I could not delete the external repository. So, I deleted the VM, but still I could not delete the external repository.
Any way to remove the virtual disk and delete the external repository?
Thanks