deleteosimage command

Use the deleteosimage command to delete the operating-system images that have been imported to the management node.

Synopsis

smcli deleteosimage [-h | --help]
smcli deleteosimage [-o | --osname] operating_system_name
smcli deleteosimage [-p | --osprofile] operating_system_profile

Description

The deleteosimage command deletes the operating-system images that were imported to the management node.

Options

-h | -?
Displays the syntax and a brief description of the command.
--help
Displays detailed information about the command, including the syntax, a description of the command, a description of the options, error codes, and examples.
Tip: If you specify additional options other than -h | -? | --help, the options are ignored.
-o | --osname
Specify the name of the operating-system image to delete.
Tip: You can find the operating-system image name by using the lsosimages command.
-p | --osprofile
Specify the name of the operating-system profile to delete. The default value is to delete all profiles for the specified osname parameter.

Exit status

The following codes are returned by this command.
  • 0: The command was successful.
  • 1: A usage error occurred.
  • 110: Command could not complete because an internal error occurred.

Examples

This example illustrates how to delete the operating-system image rhel6.3 that was imported to the management node.

smcli deleteosimage -o rhel6.3

This example illustrates how to delete the operating-system profile rhel6.3-x86_64-install-Basic from the management node.

smcli deleteosimage -o rhel6.3-x86_64-install-Basic