[{"label":"Latest (V1)","version":"latest"}]
horizon-cloud-nextgen
Delete Version
DescriptionSubmit 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
URLURL
https://cloud.vmwarehorizon.com/imagemgmt/v1/images/{imageId}/versions/{versionId}
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
This operation uses the following authentication methods.
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
cURL Command
curl -X DELETE https://cloud.vmwarehorizon.com/imagemgmt/v1/images/{imageId}/versions/{versionId}
[{"label":"Latest (V1)","version":"latest"}]
horizon-cloud-nextgen
On This Page
Images Operations
post
post
delete
get
get
patch
post