Deleting an Image or Versions of an Image
Delete a Version of an Image
To delete a version of an existing image, use the following command:
emcli db_software_maintenance –deleteVersion –version_id=<version_id> [-reportOnly=true|false]
Description of the Input VariablesThe input variables are:
- version_id: the ID of the version that needs to be deleted.
- reportOnly: This is an optional parameter and the default value is set to false. When it is specified as true, it lists the version details that will be deleted but the operation is not carried as the name suggests. This is used as a precautionary step before actual deletion of a version.
Delete an Image
To delete an image, which will in turn delete all versions of an image and all metadata related to an image such as subscriptions and software library components, use the following command:emcli db_software_maintenance –deleteImage –image_id=<image_id> [-reportOnly=true|false]
Description of the Input VariablesThe input variables are:
- Image_id: the ID of the version that needs to be deleted.
- reportOnly: This is an optional parameter and the default value is set to false. When it is specified as true, it lists the version details that will be deleted but the operation is not carried as the name suggests. This is used as a precautionary step before actual deletion of a version.