When delete an image depot from vSphere lifecycle manager, the task fails with an error:
A general system error occurred: The content of the specified depot is being referenced by some baselines or desired states. Deleting the depot will cause the baselines or desired states unusable. Check the data field of error for the details of conflicts.
vCenter 8.0.x
This is because the image is still used by a cluster.
Click on the cluster, click on "Update" tab page, Edit the images, then confirm that the image is still in use.
1) Edit settings of the cluster, make it to use a different image.
Then follow the step in kb 384587:
dcli com vmware esx settings depots offline delete-task --depot <depot UUID>
Some images are removed with this command
2) The dcli command still cannot remove some images, finally, we use another option: