DELETE /osImages/<images_list>

Use the DELETE method to remove one or more OS images, OS image-profiles, and custom files (such as device drivers, boot files, configuration settings, installation scripts, software, and unattend files) from the Lenovo XClarity Administrator OS images repository.

Authentication

Authentication with user name and password is required.

Request URL

DELETE https://<management_server_IP>/osImages/<images_list>

where <images_list> is a list of one or more IDs, separated by a comma, for OS images, OS image profile, and custom files such as device drivers, boot files, configuration settings, installation scripts, software, and unattend files (for example, hba-elxcna-windows2016-v1,hba-elxfc-windows2016-v1). To obtain the ID, use the GET /osImages method.

Note:
  • If you specify an operating-system image, the operating system image and all associated profiles are deleted. If you specify an OS profile, only the profile is deleted; all other profiles for the operating system remain.

  • Specify either a full OS image ID or one or more OS image profile IDs for that OS image. Specifying both the full OS image ID and OS image profile IDs for that OS image in the same URI might result in errors.

Query parameters

None

Request body

None

Response codes

Code Description
204 OK. The OS profile was deleted from the repository successfully.
401 Unauthorized. The user could not be authenticated.
403 Forbidden. The server could not authenticate this session.
412 Precondition failed. The specified image type is not supported for import.
500 Internal server error. An internal error occurred.

Response body

None