Move-PnPRecycleBinItem

Moves all items or a specific item in the first stage recycle bin of the current site collection to the second stage recycle bin

Syntax

Move-PnPRecycleBinItem
    [-Identity <RecycleBinItemPipeBind>]
                          [-Force [<SwitchParameter>]]
                          [-Connection <SPOnlineConnection>]

Examples

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

Move-PnpRecycleBinItem

Moves all the items in the first stage recycle bin of the current site collection to the second stage recycle bin

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

Move-PnpRecycleBinItem -Identity 26ffff29-b526-4451-9b6f-7f0e56ba7125

Moves the item with the provided ID in the first stage recycle bin of the current site collection to the second stage recycle bin without asking for confirmation first

------------------EXAMPLE 3------------------

Move-PnpRecycleBinItem -Force

Moves all the items in the first stage recycle bin of the current context to the second stage recycle bin without asking for confirmation first

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.

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

If provided, no confirmation will be asked to move the first stage recycle bin items to the second stage

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

If provided, moves the item with the specific ID to the second stage recycle bin

Type:RecycleBinItemPipeBind
Position:Named
Accept pipeline input:True
Accept wildcard characters:False