Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

send-to-trash

A lightweight CLI tool written in Go to send files to the Windows Recycle Bin.

Features

  • Move files to trash instead of permanent deletion.
  • Supports filenames and glob patterns.
  • Leverages Windows API for native Recycle Bin integration.
  • Automatically skips non-trashable devices (like network shares or CD-ROMs) to avoid unwanted confirmation dialogs.

Installation

Build the binary using Go:

go build -o send-to-trash.exe .

Usage

./send-to-trash.exe [-ui] <file_or_glob>
  • -ui: Enable GUI dialogs (disabled by default).

License

This project is licensed under the MIT License.

About

A lightweight CLI tool written in Go to send files to the Windows Recycle Bin.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages