Get-PnPTenantRecycleBinItem

Returns all modern and classic site collections in the tenant scoped recycle bin

Syntax

Get-PnPTenantRecycleBinItem
   [-Connection <SPOnlineConnection>]

Description

This command will return all the items in the tenant recycle bin for the Office 365 tenant you are connected to. Be sure to connect to the SharePoint Online Admin endpoint (https://yourtenantname-admin.sharepoint.com) in order for this command to work.

Examples

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

Get-PnPTenantRecycleBinItem

Returns all modern and classic site collections in the tenant scoped recycle bin

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.

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

Outputs

Microsoft.Online.SharePoint.TenantAdministration.DeletedSiteProperties