Share via


RecycleBinItem.DeleteObject Method

Permanently deletes the Recycle Bin item.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Sub DeleteObject
'Usage
Dim instance As RecycleBinItem

instance.DeleteObject()
[RemoteAttribute]
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.

See Also

Reference

RecycleBinItem Class

RecycleBinItem Members

Microsoft.SharePoint.Client Namespace