Delete all items in Second Stage Recycle Bin
How to delete all items in a SharePoint Online Second Stage Recycle Bin using a Power Automate flow. In other words, empty the second stage recycle bin.
URI
Headers
Body
Not applicable
Screenshot with example
Copy/paste example
Resources
RecycleBinItemCollection.DeleteAllSecondStageItems method
That’s it, Happy testing!
Hello, I am trying to do a flow to delete all files in my sharepoint document library recycle bin. Most articles arent very helpful. I know I need to do a get and delete http call, but those examples are only for specific files. How do I do it for all items? Thanks!
Hi Jacob,
You can use the DeleteAll method for that.
https://learn.microsoft.com/en-us/previous-versions/office/sharepoint-csom/ee544115(v=office.15)
I got another blog/recipe for that, have a look at this one:
https://www.expiscornovus.com/2024/03/27/delete-all-items-in-recycle-bin/