RecycleBinItem.DeleteObject method
Permanently deletes the Recycle Bin item.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Sub DeleteObject
'Usage
Dim instance As RecycleBinItem
instance.DeleteObject()
public void DeleteObject()
Exceptions
Exception | Condition |
---|---|
[System.ArgumentException] | Recycle Bin item does not exist. Error code: -2147024809. |
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: -2147024891. |