Click here to Skip to main content
Click here to Skip to main content

Tagged as

Completely Empty the SharePoint Recycle Bin

, 8 Sep 2013 CPOL
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]

License

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

Share

About the Author

StevenLJackson1
Architect
United States United States
No Biography provided
Follow on   Twitter

Comments and Discussions

 
GeneralAwesome job mate PinmemberSteven Oberholzer10-Apr-14 13:02 
GeneralRe: Awesome job mate PinmemberStevenLJackson111-Apr-14 1:58 
GeneralMy vote of 5 Pinmembernagen bihari26-Mar-14 22:17 
GeneralRe: My vote of 5 PinmemberStevenLJackson127-Mar-14 2:35 
GeneralWorks in SP2013 as well PinmemberAleksey Istomin27-Aug-13 18:33 
GeneralRe: Works in SP2013 as well PinmemberStevenLJackson18-Sep-13 1:15 
GeneralMy vote of 5 PinmemberSadan12319-Mar-13 3:35 
GeneralRe: My vote of 5 PinmemberStevenLJackson119-Mar-13 3:50 
QuestionNeed Help PinmemberMember 98057436-Mar-13 16:34 
AnswerRe: Need Help PinmemberStevenLJackson18-Mar-13 2:54 
GeneralRe: Need Help PinmemberMember 980574311-Mar-13 18:02 
GeneralRe: Need Help PinmemberStevenLJackson112-Mar-13 4:15 
QuestionIs this User level or site level PinmemberArkyBass19-Dec-12 8:12 
I have 5000 items in this recycle bin.   We have a multi site sharepoint invironment.   If I run the Java in this post does it only remove these records?  
 
When I ran it it I got the message 'Do you want to empyty the site collection recycle bin?'.   That scared me so I canceled.
I went to this page:
http://myshare/aDiv/waiver/Psych/_layouts/RecycleBin.aspx
 
I only want to empty that recycle bin only.
AnswerRe: Is this User level or site level PinmemberStevenLJackson14-Jan-13 10:43 
GeneralRe: Is this User level or site level PinmemberArkyBass7-Jan-13 3:56 
QuestionIt works ..excellent !!!!!!!!!!!!! PinmemberRom FM13-Nov-12 10:38 
AnswerRe: It works ..excellent !!!!!!!!!!!!! PinmemberStevenLJackson113-Nov-12 15:43 
GeneralIf anyone can verify that this works (or not) in SharePoint ... PinmemberStevenLJackson116-Feb-12 3:06 
GeneralRe: If anyone can verify that this works (or not) in SharePoint ... PinmemberStevenLJackson113-Mar-12 9:09 
GeneralRe: If anyone can verify that this works (or not) in SharePoint ... Pinmemberravi_22920-Sep-12 8:08 
GeneralRe: If anyone can verify that this works (or not) in SharePoint ... PinmemberStevenLJackson120-Sep-12 9:34 
GeneralRe: If anyone can verify that this works (or not) in SharePoint ... PinmemberCTOSian25-Apr-13 3:55 
GeneralRe: If anyone can verify that this works (or not) in SharePoint ... PinmemberStevenLJackson125-Apr-13 5:47 

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

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

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