Open
Conversation
6 tasks
gaiking-uk
commented
Mar 7, 2026
| ### EXAMPLE 2 | ||
| ```powershell | ||
| Get-PnPRecycleBinItem -Identity f3ef6195-9400-4121-9d1c-c997fb5b86c2 | ||
| Get-PnPRecycleBinItem -SecondStage |
Author
There was a problem hiding this comment.
Examples re-ordered. Example 2 now used to show how to get items from second stage
gaiking-uk
commented
Mar 7, 2026
|
|
||
| ### EXAMPLE 3 | ||
| ```powershell | ||
| Get-PnPRecycleBinItem -FirstStage |
Author
There was a problem hiding this comment.
Examples re-ordered. Example 3 now used to show how to get items from bot first and second stages
gaiking-uk
commented
Mar 7, 2026
| ### EXAMPLE 4 | ||
| ```powershell | ||
| Get-PnPRecycleBinItem -SecondStage | ||
| Get-PnPRecycleBinItem -Identity f3ef6195-9400-4121-9d1c-c997fb5b86c2 |
Author
There was a problem hiding this comment.
Examples re-ordered. Example 4 now used to show how to retrieve a specific file
gaiking-uk
commented
Mar 7, 2026
| Get-PnPRecycleBinItem -RowLimit 10000 | ||
| ``` | ||
|
|
||
| Returns items in recycle bin limited by number of results. |
Author
There was a problem hiding this comment.
Examples re-ordered. Example 5 now used to show how to use -RowLimit parameter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type
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-PnPRecycleBinItemwith 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-FirstStageswitch 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.