Export (0) Print
Expand All
Expand Minimize

SPWeb.Recycle Method

Sends the website to the recycle bin.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public void Recycle()

ExceptionCondition
SPException

The website is a root web.

NotSupportedException

The website cannot be restored.

The website can be restored or permanently deleted from the recycle bin.

Show:
© 2014 Microsoft