Details
As a PowerCLI user, you can create custom image profiles by using the New-ESXImageProfile command. However, after you create an Image Profile, no command can selectively remove the user-created Image Profile from the PowerCLI session.
Solution
- Use the following command to remove custom generated Image Profile.
Remove-EsxSoftwareDepot -SoftwareDepot file://custom/depot/Caution: This might sometimes fail to remove the user-created Image Profile and might remove all the user-created Image Profiles from the PowerCLI session.
- Start a new PowerCLI session.
Based on VMware KB 2001459