Skip to content

Latest commit

 

History

History
91 lines (67 loc) · 2.39 KB

Clear-PnPTenantRecycleBinItem.md

File metadata and controls

91 lines (67 loc) · 2.39 KB
external help file applicable schema
SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
2.0.0

Clear-PnPTenantRecycleBinItem

SYNOPSIS

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------------------

PS:> 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------------------

PS:> 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

PARAMETERS

-Force

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

Type: SwitchParameter
Parameter Sets: (All)

Required: False
Position: Named
Accept pipeline input: False

-Url

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

Type: String
Parameter Sets: (All)

Required: True
Position: Named
Accept pipeline input: False

-Wait

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

Type: SwitchParameter
Parameter Sets: (All)

Required: False
Position: Named
Accept pipeline input: False

-Connection

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

Type: SPOnlineConnection
Parameter Sets: (All)

Required: False
Position: Named
Accept pipeline input: False

RELATED LINKS

SharePoint Developer Patterns and Practices