Table of contents
TOC
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

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

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

Parameters

tenant

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

siteFullUrl

  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