Removing an Image Profile
With vSphere Image Builder 5.1, we now have a cmdlet Remove-EsxImageProfile
to remove an Image Profile. However, it is important to know that you can't remove an Image Profile from a read-only Software Depot. For example, the predefined Image Profiles available in the ESXi Offline Bundle cannot be removed. The Remove-EsxImageProfile
cmdlet can only be used to remove/delete the Image Profiles created by the user.
How to do it…
The following procedure will guide you through the steps required to remove/delete Image Profiles:
Issue the command
Get-EsxImageProfile
to list all the available Image Profiles.Identify the Image Profile to be deleted. In this example, we will delete the Image Profile
Profile001
.Issue the
Remove-EsxImageProfile
command to delete the Image Profile.Remove-EsxImageProfile –ImageProfile "Profile001"