A simple Windows command-line tool to send files to the Recycle Bin.
For local drives, files are moved to the Windows Recycle Bin.
For network drives (NAS, QNAP, \UNC paths), files are deleted permanently.
Make sure you have .NET 5 SDK installed.
git clone https://github.com/NinjaMinjax/RecycleTool.git
cd RecycleTool
dotnet new console --force
move /Y Program_backup.cs Program.cs
dotnet publish -c Release -r win-x64 --self-contained true
The compiled executable will be in: RecycleTool/bin/Release/net5.0/win-x64/publish/RecycleTool.exe
RecycleTool.exe "C:\path\to\file.txt"
RecycleTool.exe "Q:\network\share\file.docx"
- Local files β moved to Recycle Bin
- Network files (NAS/QNAP) β permanently deleted
- Network drives (QNAP, Synology, etc.) do not support Windows Recycle Bin. This tool deletes them immediately.
If you want a "fake recycle bin" for network shares, you can fork this project and adjust the logic to move files into a custom folder.