Click here to Skip to main content
13,346,487 members (65,570 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


3 bookmarked
Posted 15 Feb 2012

Completely Empty the SharePoint Recycle Bin

, 8 Sep 2013
Rate this:
Please Sign up or sign in to vote.
A quick way to empty all entries in the SharePoint 2007 recycle bin without having to empty one page at a time.

If you have lots of stuff in your SharePoint Recycle Bin and want to empty it all, here’s a quick tip:

  1. Navigate to the recycle bin page (e.g., http://localhost/_layouts/recyclebin.aspx)
  2. In the address bar, type “javascript:emptyItems()” (minus the quotes)
  3. Press Enter. You will be asked if you really want to empty the recycle bin.
  4. Click OK to empty it; click Cancel to leave it alone.

It’s much faster to empty it this way if you have multiple pages of “stuff” in your recycle bin.

Note that this tip may only work with Internet Explorer. The browser must be able to understand the "javascript:" portion of the "url" in the address bar.

[Update: This tip works with SharePoint versions from 2007 to 2013. -sj]


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

QuestionNeed Help Pin
Member 98057436-Mar-13 17:34
memberMember 98057436-Mar-13 17:34 
AnswerRe: Need Help Pin
StevenLJackson18-Mar-13 3:54
memberStevenLJackson18-Mar-13 3:54 
GeneralRe: Need Help Pin
Member 980574311-Mar-13 19:02
memberMember 980574311-Mar-13 19:02 
I got timeout error message.

Kindly let me know any other way to clean the recycle bin.

I tried through coding also SPRecycleBinItemCollection itemColl = site.GetRecycleBinItems(q);
but my console appliation keeps no wainting no progress.
GeneralRe: Need Help Pin
StevenLJackson112-Mar-13 5:15
memberStevenLJackson112-Mar-13 5:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.180111.1 | Last Updated 8 Sep 2013
Article Copyright 2012 by StevenLJackson1
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid