PnP-PowerShell icon indicating copy to clipboard operation
PnP-PowerShell copied to clipboard

Example 1 incorrect on Clear-PnPRecycleBinItem Microsoft Docs page

Open rakova17 opened this issue 4 years ago • 1 comments

Hello.

I originally opened this issue here: https://github.com/MicrosoftDocs/office-docs-powershell/issues/6893 and was instructed to come here (see link).

Example 1 on this page is incorrect: https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/clear-pnprecyclebinitem?view=sharepoint-ps

This:

Get-PnPRecycleBinItem | ? FileLeafName -like "*.docx" | Clear-PnpRecycleBinItem

Should be:

Get-PnPRecycleBinItem | ? LeafName -like "*.docx" | Clear-PnpRecycleBinItem

Thanks!

rakova17 avatar Dec 01 '20 12:12 rakova17

I submitted a fix for this in PR #3016.

ToddKlindt avatar Dec 01 '20 14:12 ToddKlindt