Table of contents
Collapse the table of content
Expand the table of content

TenantExtensions.DeleteSiteCollectionFromRecycleBin Method

SharePoint Dev Documents|Last Updated: 5/20/2017
1 Contributor

Deletes a site collection from the site collection recycle bin

Assembly: OfficeDevPnP.Core.dll


public static bool DeleteSiteCollectionFromRecycleBin(this Tenant tenant, String siteFullUrl, Boolean wait = True, Func<TenantOperationMessage, Boolean> timeoutFunction)



  Type: Microsoft.Online.SharePoint.TenantAdministration.Tenant
  A tenant object pointing to the context of a Tenant Administration site


  Type: System.String
  URL of the site collection to delete

(optional) wait

  Type: System.Boolean
  If true, processing will halt until the site collection has been deleted from the recycle bin

(optional) timeoutFunction

  Type: System.Func<OfficeDevPnP.Core.TenantOperationMessage, System.Boolean>
  An optional function that will be called while waiting for the site to be created. If set will override the wait variable. Return true to cancel the wait loop.

Return Value

Type: bool

See also

© 2018 Microsoft