Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 14 additions & 16 deletions documentation/Get-PnPRecycleBinItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ Returns one or more items from the Recycle Bin.

## SYNTAX

### All (Default)
```powershell
Get-PnPRecycleBinItem [-RowLimit <Int32>] [-Connection <PnPConnection>] [-Includes <String[]>]

```

### Identity
```powershell
Get-PnPRecycleBinItem [-Identity <Guid>] [-Connection <PnPConnection>] [-Includes <String[]>]
Expand Down Expand Up @@ -53,35 +47,37 @@ This command will return all the items in the recycle bin for the SharePoint sit
Get-PnPRecycleBinItem
```

Returns all items in both the first and the second stage recycle bins in the current site collection.
Returns all items in the first stage recycle bin in the current site collection.


### EXAMPLE 2
```powershell
Get-PnPRecycleBinItem -Identity f3ef6195-9400-4121-9d1c-c997fb5b86c2
Get-PnPRecycleBinItem -SecondStage
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Examples re-ordered. Example 2 now used to show how to get items from second stage

```

Returns a specific recycle bin item by id.
Returns all items in the second stage recycle bin in the current site collection.

### EXAMPLE 3
```powershell
Get-PnPRecycleBinItem -FirstStage
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Examples re-ordered. Example 3 now used to show how to get items from bot first and second stages

$AllRBItmes = Get-PnPRecycleBinItem -FirstStage
$AllRBItmes += Get-PnPRecycleBinItem -SecondStage
```

Returns all items in only the first stage recycle bin in the current site collection.
Populates `$AllRBItems` with all items in the first and the second stage recycle bins in the current site collection.

### EXAMPLE 4
```powershell
Get-PnPRecycleBinItem -SecondStage
Get-PnPRecycleBinItem -Identity f3ef6195-9400-4121-9d1c-c997fb5b86c2
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Examples re-ordered. Example 4 now used to show how to retrieve a specific file

```

Returns all items in only the second stage recycle bin in the current site collection.
Returns a specific recycle bin item by id.

### EXAMPLE 5
```powershell
Get-PnPRecycleBinItem -RowLimit 10000
```

Returns items in recycle bin limited by number of results.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Examples re-ordered. Example 5 now used to show how to use -RowLimit parameter

Returns upto 10,000 items from the first stage of the recycle bin in the current site collection.

## PARAMETERS

Expand All @@ -100,7 +96,9 @@ Accept wildcard characters: False
```

### -FirstStage
Returns all items in the first stage recycle bin
Returns all items in the first stage recycle bin.

Note that the `-FirstStage` parameter is implied if neither the `-Identity` or the `-SecondStage` parameters are included.

```yaml
Type: SwitchParameter
Expand Down Expand Up @@ -132,7 +130,7 @@ Limits returned results to specified amount

```yaml
Type: Int32
Parameter Sets: All, FirstStage, SecondStage
Parameter Sets: FirstStage, SecondStage

Required: False
Position: Named
Expand Down
Loading