REST API - delete

vcenter vm template library items versions: delete

Deletes the virtual machine template contained in the library item at the specified version. This operation was added in vSphere API 6.9.1.


HTTP request

DELETE https://{server}/rest/vcenter/vm-template/library-items/{template_library_item}/versions/{version}

Path Parameters

Name Type Description
template_library_item string Identifier of the VM template library item.
version string Version of the library item to delete.


HTTP Status Code: 200



HTTP Status Code Type Description
404 not_found if the library item or version is not found.
400 invalid_argument if the specified version is the latest version of the library item.
500 resource_inaccessible if the virtual machine template's configuration state cannot be accessed.
401 unauthenticated if the user that requested the operation cannot be authenticated.
403 unauthorized if the user that requested the operation is not authorized to perform the operation.
500 error if the system reports an error while responding to the request.