Skip to content

NinjaMinjax/RecycleTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 

Repository files navigation

RecycleTool

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.


πŸ”§ Build

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

πŸš€ Usage

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

πŸ“Œ Notes

  • 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.

About

A lightweight Windows command-line tool to send files to the Recycle Bin, local or network.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages