SPSite.Delete method

Deletes the site collection from the server.

Overload list

  Name Description
Public method Delete() Deletes the site collection from the server.
Public method Delete(Boolean) Deletes the site collection from the server and removes the site collection users from Active Directory Domain Services (ADDS) if bDeleteADAccounts is true.
Public method Delete(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.

Top

See also

Reference

SPSite class

SPSite members

Microsoft.SharePoint namespace