Disable creation of $recycle.bin folder?

trond

New member
Local time
12:41 PM
Messages
8
Is there any way to disable the creation of the $recycle.bin folder in the root directory of all harddrives? Disable all recycle bin functions globally & permanently?

In the recycle bin properties I've chosen to delete all files directly and not move them to the recycle bin, yet everytime I connect a new harddrive (I've got 8 hot-swap bays), this option is reset for that particular drive and Windows 7 creates a $recycle.bin folder in the root directory. It really annoys me.
 

My Computer My Computer

OS
Windows 7 64bit
Turn off show hidden files....You'll never see it again.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
That's not what I am asking for. That's like closing your eyes to the problem. :)

I don't want that directory on the drive, at all.

Doesn't solve the problem that Windows 7 resets the setting to directly delete files for every new drive I attach either.
 

My Computer My Computer

OS
Windows 7 64bit
Well you are looking for a solution to a problem that doesn't have a solution. So what am I suppose to say?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
I couldn't tell from your first reply that there's no solution, so I guess that's what you should have said.

I was hoping there would be some registry hack, some service to disable, or some third party tool that could completely disable the recycle bin.
 

My Computer My Computer

OS
Windows 7 64bit

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Thanks, but as I wrote in the initial post, I've already done that. The other problem, as I wrote, is also that everytime I attach a new drive, that setting is reset on the new drive.

In XP, you can use GPEdit to enable "Do not move deleted files to Recycle Bin". This permanently disables the Recycle Bin on all drives, also new drives that you attach, and works very well on an old XP computer I got.

I've yet to find such a global setting in Windows 7. Unfortunately, I use Home Premium, it doesn't have GPEdit so I don't know if that option exists in Windows 7 also. But all settings in GPEdit should have a registry equivalent, so if GPEdit in Windows 7 Pro+ do have this setting, perhaps it's possible to enable it in the registry.
 

My Computer My Computer

OS
Windows 7 64bit
You could look in this excel spreadsheet and see if there's an entry. Excel 2007 format.
 

Attachments

My Computer My Computer

Computer Manufacturer/Model Number
Home Built
OS
Windows 7 Ultimate
CPU
Intel Q6600
Motherboard
Asus P5K WI/Fi
Memory
8GB
Graphics Card(s)
2 ATi 3870
Sound Card
Creative xtreme gamer
Monitor(s) Displays
Samsun 24"
Hard Drives
2 1tb WD
1 500gb Seagate
PSU
Thermaltake 1000
Case
Lian li PC66
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. Have fun :).

Code:
' 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
 

My Computer My Computer

OS
Windows 7 Ultimate x64
Last edited by a moderator:

My Computer My Computer

OS
Windows 7 Ultimate x64
Back
Top