Introduction

I was doing some site cleanup today and ended up with around 15,000 items in a site collection recycle bin.  I started cleaning them out using the GUI.  It was SLOW going.  There is no way to “Delete All” for the second stage bin.  Rather, you have to delete items from the second stage bin one page of items at a time.  Here’s a quick tip on how to delete everything with PowerShell.

Empty Recycle Bin

The following code will delete EVERYTHING out of both stages of the site collection recycle bin:

The amount of time the DeleteAll() process takes to complete will depend on how many items are being removed.  Enjoy!