Cannot empty the recycle bin within Sharepoint 2007

Posted on 2011-05-02
Last Modified: 2012-05-11
Good afternoon,

Running Sharepoint 2007 SP2 which has a large site collection recycle bin with over 900 thousand of deleted items. I want to remove all items from here but when i try to empty the end user recycle bin or delete items from the second stage recycle bin it times out or appears with a "cannot complete this action error"

I've tried to turn off both the first and second stage recycle bins from Central Administration and disabling this through stsadm but these error and time out as well.

The recycle bin is set to only retain items for 30 days, but there are items in there that were deleted a year ago. The job-recycle-bin-cleanup job is set to run every hour but fails each times it runs.

Can anyone please advise if there is another way to empty the bin?
Question by:PXSAX
    LVL 38

    Accepted Solution

    LVL 5

    Assisted Solution


    Author Comment

    I ran the powershell script found in the link advised by ACH1LLES and the script ran OK for my other small site collections, but when i tried to run on the main site collection with this problem recycle bin, it didn't work. There was no error it looked like it was running for a 2 minutes then just went back to the command prompt and nothing was deleted from the bin.

    navdeepmadan: I tried running the script from your link through powershell as well but it had multiple errors when trying to run. Should i be using powershell to run this or something else?
    LVL 5

    Expert Comment

    you have provide the code provide by me but you have run the batches. you can find a msdn artciles on ruuning a batch in sharepoint. It will help you cleaning the recycle bin.

    Author Closing Comment

    Not fully resolved

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Suggested Solutions

    The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now