Source:
https://www.elevenforum.com/t/enable-recycle-bin-for-removable-drives-in-windows-11.5106/
https://winaero.com/how-to-enable-the-recycle-bin-on-removable-drives/
When Windows 10 deletes files on a USB flash drive, you are prompted to "permanently delete" them, meaning no Recycle Bin if it's an accidental deletion. The following registry entries will allow Recycle Bin to activate on flash drives. This affects in real-time, though you may need to switch explorer pane to a new drive and back, or eject and reinsert the flash drive.
Only the HKLM setting is needed for everyone.
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v RecycleBinDrives /t REG_DWORD /d 0xffffffff /f
... or the following for one user.
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v RecycleBinDrives /t REG_DWORD /d 0xffffffff /f
Delete these entries from the registry to restore default behavior.
reg delete HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v RecycleBinDrives /f
reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v RecycleBinDrives /f
Note: If you are moving the flash drive between machines, you must implement this behavior on each new machine. If you're not using Group Policies, it may be smart to add a CMD file to affect the HKCU setting on each flash drive you need to maintain a Recycle Bin.
No comments:
Post a Comment