Click here to Skip to main content
11,923,013 members (60,001 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


1 bookmarked

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]


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

Questionvery nice code snippet to delete items from recycle bin for sharepoint site collection Pin
dhayanandkalimidi23-Nov-15 3:07
memberdhayanandkalimidi23-Nov-15 3:07 
GeneralAwesome job mate Pin
Steven Oberholzer10-Apr-14 14:02
memberSteven Oberholzer10-Apr-14 14:02 
GeneralRe: Awesome job mate Pin
StevenLJackson111-Apr-14 2:58
memberStevenLJackson111-Apr-14 2:58 
GeneralMy vote of 5 Pin
nagen bihari26-Mar-14 23:17
membernagen bihari26-Mar-14 23:17 
GeneralRe: My vote of 5 Pin
StevenLJackson127-Mar-14 3:35
memberStevenLJackson127-Mar-14 3:35 
GeneralWorks in SP2013 as well Pin
Aleksey Istomin27-Aug-13 19:33
memberAleksey Istomin27-Aug-13 19:33 
GeneralRe: Works in SP2013 as well Pin
StevenLJackson18-Sep-13 2:15
memberStevenLJackson18-Sep-13 2:15 
GeneralMy vote of 5 Pin
Sadan12319-Mar-13 4:35
memberSadan12319-Mar-13 4:35 
GeneralRe: My vote of 5 Pin
StevenLJackson119-Mar-13 4:50
memberStevenLJackson119-Mar-13 4:50 
QuestionNeed Help Pin
Member 98057436-Mar-13 17:34
memberMember 98057436-Mar-13 17:34 
1.My Sharepoint 2007 site recycle bin have around 900000 items. Do this javascript will help me to clear all 900000 items or will hang the process or server?
2. Recycle bin job has failed for this site . is this due to too many items in recylce bin? . I have many webapplication under this server but only for this site the recylce bin job is failed.
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 
GeneralRe: Need Help Pin
StevenLJackson112-Mar-13 5:15
memberStevenLJackson112-Mar-13 5:15 
QuestionIs this User level or site level Pin
ArkyBass19-Dec-12 9:12
memberArkyBass19-Dec-12 9:12 
AnswerRe: Is this User level or site level Pin
StevenLJackson14-Jan-13 11:43
memberStevenLJackson14-Jan-13 11:43 
GeneralRe: Is this User level or site level Pin
ArkyBass7-Jan-13 4:56
memberArkyBass7-Jan-13 4:56 
QuestionIt works ..excellent !!!!!!!!!!!!! Pin
Rom FM13-Nov-12 11:38
memberRom FM13-Nov-12 11:38 
AnswerRe: It works ..excellent !!!!!!!!!!!!! Pin
StevenLJackson113-Nov-12 16:43
memberStevenLJackson113-Nov-12 16:43 
GeneralIf anyone can verify that this works (or not) in SharePoint ... Pin
StevenLJackson116-Feb-12 4:06
memberStevenLJackson116-Feb-12 4:06 
GeneralRe: If anyone can verify that this works (or not) in SharePoint ... Pin
StevenLJackson113-Mar-12 10:09
memberStevenLJackson113-Mar-12 10:09 
GeneralRe: If anyone can verify that this works (or not) in SharePoint ... Pin
ravi_22920-Sep-12 9:08
memberravi_22920-Sep-12 9:08 
GeneralRe: If anyone can verify that this works (or not) in SharePoint ... Pin
StevenLJackson120-Sep-12 10:34
memberStevenLJackson120-Sep-12 10:34 
GeneralRe: If anyone can verify that this works (or not) in SharePoint ... Pin
CTOSian25-Apr-13 4:55
memberCTOSian25-Apr-13 4:55 
GeneralRe: If anyone can verify that this works (or not) in SharePoint ... Pin
StevenLJackson125-Apr-13 6:47
memberStevenLJackson125-Apr-13 6:47 

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.

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