[{"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 won’t be deleted from provider, only records from the service will be deleted.

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

400

Bad request - unsupported provider type


401

Unauthorized


403

Forbidden


404

Unable to find the image version


409

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


422

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


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?