Remove-PnPListItem defaults to NOT going to recycle bin #3324
Unanswered
myitanalyst
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have recently needed to use PnP and PowerShell to delete some duplicate items in SharePoint.
We found that Remove-PnPListItem defaults to NOT allowing the deleted items to go to the recycle bin.
It seems like this is erroring on the wrong side of the fence.
I now know you can use -Recycle to make it go to the recycle bin, but it seems like it should have been the opposite.
Automatically go to the recycle bin, but allow for a parameter like -NoRecycle to specify NOT going to the recycle bin.
Thanks for listening.
Beta Was this translation helpful? Give feedback.
All reactions