Delete Local LibraryDescription
Deletes 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.
Identifier of the local library to delete. The parameter must be an identifier for the resource type: com.vmware.content.Library.
Required session ID, acquired from Create Session API under CIS product
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.
PowerCLI Client SDK Example