Export (0) Print
Expand All

SPSite.Delete method (Boolean, Boolean)

Deletes the site collection from the server, optionally removes the site collection users from Active Directory Domain Services (ADDS), and optionally uses a timer job to delete the site collection gradually.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public void Delete(
	bool deleteADAccounts,
	bool gradualDelete
)

Parameters

deleteADAccounts
Type: System.Boolean

true to remove the site collection users from ADDS; otherwise, false.

gradualDelete
Type: System.Boolean

true to delete the contents of the site collection gradually using the Gradual Delete timer job; false to delete the contents of the site collection immediately.

Show:
© 2014 Microsoft