Delete Local Library
DescriptionDeletes the specified local library. Deleting a local library will remove the entry immediately and begin an asynchronous task to remove all cached content for the library. If the asynchronous task fails, file content may remain on the storage backing. This content will require manual removal.
if you do not have all of the privileges described as follows: - The resource com.vmware.content.Library referenced by the parameter libraryId requires ContentLibrary.DeleteLocalLibrary.
Request
URLURL
Path Parameters
Path Parameters
Identifier of the local library to delete. The parameter must be an identifier for the resource type: com.vmware.content.Library.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Authentication
Errors
Errors
com.vmware.vapi.std.errors.invalid_element_type : if the library specified by libraryId is not a local library. | com.vmware.vapi.std.errors.not_allowed_in_current_state : if the library contains a library item that cannot be deleted in its current state. For example, the library item contains a virtual machine template and a virtual machine is checked out of the library item.
com.vmware.vapi.std.errors.not_found : if the library specified by libraryId does not exist.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-deprecated-method: delete
x-vmw-doc-deprecated-path: /rest/com/vmware/content/local-library/id:{library_id}
x-vmw-doc-operation: delete