Book Image

VMware vSphere 5.5 Cookbook

By : Abhilash G B
Book Image

VMware vSphere 5.5 Cookbook

By: Abhilash G B

Overview of this book

Table of Contents (22 chapters)
VMware vSphere 5.5 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Removing an ESXi image profile


Starting with the vSphere Image Builder 5.1, there is a cmdlet Remove-EsxImageProfile to remove an image profile. The command and its syntax remain the same with vSphere Image Builder 5.5 as well.

How to do it...

The following procedure will guide you through the steps required to remove/delete image profiles:

  1. Issue the command Get-EsxImageProfile to list all the available image profiles.

  2. Identify the image profile to be deleted. In this example, we will delete the image profile Profile001.

  3. Issue the Remove-EsxImageProfile command to delete the image profile:

    Remove-EsxImageProfile –ImageProfile "Profile001"
    

How it works...

The Remove-EsxImageProfile command will only delete the image profile from the current vSphere PowerCLI session. 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.