[{"label":"Latest (V1)","version":"latest"}]
horizon-cloud-nextgen

Delete Version

Description

Submit delete version request by image id and version id. This operation will occur in background.

Note: 1. This deletes the version and all assets associated with this version. If there is only one version associated with the image, this deletes the image as well.

2. A version should be deleted only when all pools associated with it are deleted.

3. If force delete option is used, resources are deleted from service records and provider.

Request

Request

URL

URL


delete
https://cloud.vmwarehorizon.com/imagemgmt/v1/images/{imageId}/versions/{versionId}
Copy

Path Parameters

Path Parameters

string
imageId Required

imageId


string
versionId Required

versionId


Query Parameters

Query Parameters

boolean
force Optional

force


string
org_id Optional

org_id


Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

202 Accepted

Successfully accepted request to delete Version


204 No Content

No Content

Errors

Errors

ErrorResponse
400

Bad request - unsupported provider type


ErrorResponse
401

Unauthorized


ErrorResponse
403

Forbidden


ErrorResponse
404

Unable to find the image version


ErrorResponse
409

Conflict Error while deleting version - Template in admin is using version.


ErrorResponse
422

Deletion is not allowed - current version status is not allowed for deletion


ErrorResponse
500

Failed to delete Version from DB

Code Samples

Code Samples

cURL Command

curl -X DELETE https://cloud.vmwarehorizon.com/imagemgmt/v1/images/{imageId}/versions/{versionId}


[{"label":"Latest (V1)","version":"latest"}]
horizon-cloud-nextgen
Feedback

Was this page helpful?