Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How do I get Windows 7 to NOT use the recycling Bin on a removable drive? I've already told Windows to not use the function on that drive but Windows still creates the "Recycling Bin" folder. It stays empty, but I don't want it there at ALL. Simply hiding it won't do. I'm using that removable drive in my car stereo and that "recycled" folder locks up the machine.

share|improve this question
2  
I agree that the Recycle Bin being forced on every mounted fixed volume without the option to disable it is bad and poor design. I just (not for the first time) ran into a situation where it is horrible because it causes problems with data-recovery. I lost a bunch of files on a volume, so I stopped using that drive to prevent anything being overwritten, yet stupid Windows went ahead and wrote stuff to the Recycle Bin files, thus overwriting a file, even though I did NOT modify any files on that volume! –  Synetech Oct 28 '12 at 20:49
    
How do I get Windows 7 to NOT use the recycling Bin on a removable drive? Define “removable”. Windows only creates a Recycle Bin on fixed (read internal) and external hard-drives. In both cases, including external drives, they are not considered removable drives. Windows only considers floppies, memory-cards, and flash-drives as “removable” and does not create or use a Recycle Bin on those. This question was presumably talking about an external hard-drive as opposed to a removable drive on which Windows does create a Recycle Bin. –  Synetech Nov 17 '13 at 21:02

4 Answers 4

up vote 1 down vote accepted

Recycle Bin is a system directory and gets created anyway. There may be a registry hack, but restoring the OS, or installing a hotfix may reset it - so don't bother.

To avoid seeing the Recycle Bin, do the following:

  1. Hide operating system files in "Folder and search options":

    enter image description here

  2. Make sure deleted files do not get copied to the Recycle Bin (by right-clicking it):

    enter image description here

  3. Hide the Recycle Bin by personalizing the desktop:

    enter image description here

share|improve this answer
2  
That's good info but the reason I'm looking for it to NOT be there at all is because when I plug that removable drive into my car stereo, that folder crashes it. I know it sounds funny to say your car stereo crashes, but it doesn't know how to deal with that folder. Your steps above only "hide" that folder. I need for it to not exist at all. But thanks. –  JimDel Nov 30 '09 at 0:34
    
Ok - I assume your device gets shot by the $ in front of the directory name. Try this: before unplugging the removable drive, open a command prompt by right clicking it and selecting run as administrator, then type the following rd /s /q C:\$Recycle.bin (or whatever the drive you want) and disconnect. If this works, you can roll this into a batch script and add a task that will run upon device disconnect. –  Traveling Tech Guy Nov 30 '09 at 1:22
1  
Yes (too short padding to get to 15 chars :)) –  Traveling Tech Guy Nov 30 '09 at 7:09
1  
> Another thing which may work for you is renaming the recycle bin's folder name to a normal string (no $ or .)… @TravelingTechGuy, that doesn’t change the filename of the recycle bin’s folder(s), it only lets you change the name of the desktop icon; it has no effect on the actual folder(s). –  Synetech Oct 24 '12 at 3:47
1  
This is not a solution. It disables the bin for all drives instead of just the selected one(s). –  Synetech Oct 28 '12 at 20:50

"How do I get Windows 7 to NOT use the recycling Bin on a removable drive?"

Run the following script on startup or login.

Source Windows 7: Disable creation of $recycle.bin folder?:

Yes this can be done... because I got annoyed that it can't be done so I wrote a script to do it (see below). It works for me but if you have any issues yourselves you may need to tweak it a bit.

' Author:      HSV Guy
' Description: Script to remove Recycle Bin folder. Run on Windows startup or login.
' Notes: 1)    See http://www.sevenforums.com/tutorials/11949-elevated-program-shortcut-without-uac-prompt-create.html
'              for how to run programs/scripts with elevated permissions without a UAC prompt.
'        2)    Update value of RECYCLEBIN as per version of Windows (configured for Windows 7).
' Date:        1 April 2011

Dim SILENT
SILENT = TRUE

Call RunElevated

Dim filesys, drv, drvcoll, folder, RECYCLEBIN
RECYCLEBIN = ":\$Recycle.Bin\"

Set filesys = CreateObject("Scripting.FileSystemObject")
Set drvcoll = filesys.Drives


For Each drv in drvcoll
  If drv.IsReady And filesys.FolderExists(drv.DriveLetter & RECYCLEBIN)  Then
     Set folder = filesys.GetFolder(drv.DriveLetter & RECYCLEBIN)
     MyMsgBox "About to delete: " & folder
     folder.Delete
  Else
    MyMsgBox "Skipped " & drv.DriveLetter & ". Folder doesn't exist or device not ready."
  End If  
Next

'Source code of RunElevated function shamelessly taken from:
' http://www.insidethe.com/blog/2009/12/how-to-launch-a-wsh-vbscript-as-administrator-in-windows-7-and-vista/
Function RunElevated
    If WScript.Arguments.Named.Exists("elevated") = False Then
        'Launch the script again as administrator
        CreateObject("Shell.Application").ShellExecute "wscript.exe", """" & WScript.ScriptFullName & """ /elevated", "", "runas", 1
        WScript.Quit
    Else
        'Change the working directory from the system32 folder back to the script's folder.
        Set oShell = CreateObject("WScript.Shell")
        oShell.CurrentDirectory = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName)
         MyMsgBox "Now running with elevated permissions" & SILENT
    End If
End Function

Function MyMsgBox(Message)
    If Not SILENT Then MsgBox Message
End Function
share|improve this answer

Mount the drive under a Linux disk like Clonezilla and make a sector-by-sector copy. That way you have a copy to mess with and not the original. I don't think you can stop the default Windows process of creating a hidden Recycle Bin folder in each drive, but many Linux systems (like Puppy Linux) will not touch the drive with a write operation until you tell them to.

EDIT: My bad I was responding to a different post. However, if you boot your Windows machine with a Puppy Linux disk, THEN insert your external drive, you can delete the recycler and move your mp3s to your drive without getting any unwanted files written to the drive. Then you can remove your mp3 drive, remove the Puppy disk, and reboot to Windows without too much hassle. I don't know of any actual way to stop the hidden recycler file from being thrown on the drive, but this would work around it.

share|improve this answer
1  
Oops! I was responding to a different post >.< My mistake, you are correct. However, the OP could still use a Puppy Linux disk to move files for his car stereo and avoid having any hidden recycler files written to the drive. –  DigitalGalaxy Dec 6 '12 at 23:02
    
Why don't you edit this to say that? (Would work with modern Linux like Ubuntu/Fedora/Mint too.) –  WindowsEscapist Dec 6 '12 at 23:34

but Windows still creates the "Recycling Bin" folder

That is pretty easy to be avoided:

Delete the folder, open Notepad and save the blank file as $Recycle.Bin in the root directory of the drive in question, now Windows cannot create the folder.

enter image description here

If you want to use the Recycle Bin again on this drive, just delete the file.

enter image description here

share|improve this answer
3  
This is not a solution because Windows just re-creates the bin on every drive the moment any operation access it on any drive (e.g., if you delete a file on C:, then Windows creates the bin folder on every volume). This is unacceptable because it makes it effectively impossible to do data-recovery because Windows is writing to the volume for no reason. –  Synetech Oct 28 '12 at 20:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.