One day I want to remove a virtual disk from Library. And I saw there was a warning. When I open the dependencies for the disk. I saw a lot for dependencies to some temporary template.
Normally the daily clean up job will remove the temparary templates. But can not wait you can use the below powershell command.
Remove-SCVMTemplate -VMTemplate “Temporary Template8529b966-bd1f-4d80-a304-ce3cf6f3b8cf”
Now you can go back to the console and refresh and remove the disk from Library.