Clear-PnPTenantRecycleBinItem

Permanently deletes a site collection from the tenant scoped recycle bin

Syntax

Clear-PnPTenantRecycleBinItem
     -Url <String>
                                  [-Wait [<SwitchParameter>]]
                                  [-Force [<SwitchParameter>]]
                                  [-Connection <SPOnlineConnection>]

Description

The Clear-PnPTenantRecycleBinItem cmdlet allows a site collection that has been deleted and still exists in the tenant recycle bin to be permanently deleted from the recycle bin as well.

Examples

------------------EXAMPLE 1------------------

Clear-PnPTenantRecycleBinItem -Url https://tenant.sharepoint.com/sites/contoso

This will permanently delete site collection with the url 'https://tenant.sharepoint.com/sites/contoso' from the tenant recycle bin

------------------EXAMPLE 2------------------

Clear-PnPTenantRecycleBinItem -Url https://tenant.sharepoint.com/sites/contoso -Wait

This will permanently delete site collection with the url 'https://tenant.sharepoint.com/sites/contoso' from the tenant recycle bin and will wait with executing further PowerShell commands until the operation has completed

Required Parameters

-Url

Url of the site collection to permanently delete from the tenant recycle bin

Only applicable to: SharePoint Online

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Only applicable to: SharePoint Online

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Force

If provided, no confirmation will be asked to permanently delete the site collection from the tenant recycle bin

Only applicable to: SharePoint Online

Type:SwitchParameter
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Wait

If provided, the PowerShell execution will halt until the operation has completed

Only applicable to: SharePoint Online

Type:SwitchParameter
Position:Named
Accept pipeline input:False
Accept wildcard characters:False