Deleting a virtual image while it is being used by a pattern causes the pattern unusable
You can delete a virtual image if the virtual image belongs to a virtual system pattern and no virtual machines are deployed. However, deleting the virtual image breaks the virtual system pattern that it belongs to because the virtual image no longer exists.
Problem
The delete action should be disabled if a virtual image belongs to a virtual system pattern even if no virtual machines are deployed to avoid breaking the virtual system patterns that reference the virtual image.
Resolving the problem
Do not delete a virtual image when the virtual image belongs to a pattern. Refer to the Included in patterns section on the virtual image detail page to check whether the virtual image is included in a pattern.
If the virtual image is already deleted, but is still needed, delete all broken virtual system patterns, reimport the virtual image, and re-create the virtual system patterns.