Do not keep files in Recycle Bin on home shares

Posted on 2012-09-03
Last Modified: 2012-09-13

We've got several Windows Server 2008 R2's as file servers.
It's currently hosting both a common directory for each site and the user's home directories.
By GPO, we also have enabled Folder Redirection of My Documents to the file server and enabled Offline Sync of this directory.

When user deletes files or folders, the data are stored in a hidden Recycle Bin in their home directory rather than removing the files directly. As we have backup, I do not see the point of keeping it in the recycle bin.

1. How do we disable this?
2. Can I safely delete all of the Recycle bins?

Thank you!
Question by:jeliasson
    LVL 52

    Expert Comment

    Right click the Recycle Bin icon on the Desktop and click [Properties]
    Check the box for [Do Not Move Files to the Recycle Bin]
    Click [Apply] and [OK]

    - Rancy
    LVL 1

    Author Comment

    Thank you Rancy, but are you sure this also applies to shadow Recycle Bin in all users home directory? The problem is also than when I'm opening their recycle bin - it's empty.
    I belive it's trickier than just disable that in Windows default Recycle Bin.
    LVL 35

    Accepted Solution

    You have to seperate the folders which your user can see....
    One part, especially the Document, Pictures etc. folders are indexed offline available and linked into the Libraries folders.
    These folders wil use the local recycle bin on the client.

    All other network files don't use the recycle bin and can be restored (previous versions), according to the settings of the share and drive on your file server.

    At least this behaviour makes sense due to offline file use, where the offline files act like local files.

    Do not remove hidden recycle bins on the client, there are several symbolic links on different places, which are shown by windows. They are hidden not to accidently delete them.
    LVL 16

    Assisted Solution

    You can disable the recycle bin via registry for all machines/servers:

    NukeOnDelete (DWORD) = 1  

    (Set to 1 to Permanently delete)

    You can push this out via Group Policy.
    LVL 1

    Author Comment

    Thank you!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    With the withdrawal of support for Windows Server 2003 this summer, many clients face the issue of moving away from their 2003 installs. There are a few options out there that many people/companies are selling. But the clients I have, haven't wanted…
    Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
    This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
    This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

    761 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

    10 Experts available now in Live!

    Get 1:1 Help Now