Skip to content

Updated Get-PnPRecycleBinItem.md#5266

Open
gaiking-uk wants to merge 1 commit intopnp:devfrom
gaiking-uk:documentation-update
Open

Updated Get-PnPRecycleBinItem.md#5266
gaiking-uk wants to merge 1 commit intopnp:devfrom
gaiking-uk:documentation-update

Conversation

@gaiking-uk
Copy link

@gaiking-uk gaiking-uk commented Mar 7, 2026

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

#5258 was initially raised as a bug Get-PnPRecycleBinItem but subsequently advised that the cmdlet is working as expected and instead documentation should be updated to clarify.

What is in this Pull Request ?

Updated Get-PnPRecycleBinItem.md to clarify that calling Get-PnPRecycleBinItem with no additional parameters, will not return all items from the recycle bin (as documentation currently advises) and will instead only return items from the first stage recycle bin, i.e. the -FirstStage switch is implied.

The only way to get all items from both the first and second stage recycle bins is to make two calls to the Get-PnPRecycleBinItem cmdlet.

### EXAMPLE 2
```powershell
Get-PnPRecycleBinItem -Identity f3ef6195-9400-4121-9d1c-c997fb5b86c2
Get-PnPRecycleBinItem -SecondStage
Copy link
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


### EXAMPLE 3
```powershell
Get-PnPRecycleBinItem -FirstStage
Copy link
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

### EXAMPLE 4
```powershell
Get-PnPRecycleBinItem -SecondStage
Get-PnPRecycleBinItem -Identity f3ef6195-9400-4121-9d1c-c997fb5b86c2
Copy link
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

Get-PnPRecycleBinItem -RowLimit 10000
```

Returns items in recycle bin limited by number of results.
Copy link
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant