Trash icon
Trash icon

Trash

 1 like

Move files and directories to the trash.

Cost / License

  • Free
  • Open Source (MIT)

Since

  • Since 2019 (updated Sep 2026)

Releases

  • 3 releases last year3 last year

GitHub

  • GitHub stars: 2.7k

Platforms

  • Windows
  • Mac
  • Linux
1like
0articles
Save

Features

Features

Highlights All activities

Trash News & Activities

Recent activities

No activities found.

Trash information

AlternativeTo Category

OS & Utilities

GitHub repository

  •  2,664 Stars
  •  82 Forks
  •  2 Open Issues
  •   Updated  
View on GitHub
Trash was added to AlternativeTo by Paul on and this page was last updated . Trash is sometimes referred to as Trash CLI. 

No comments or reviews, maybe you want to be first?

Official Links

What is Trash?

Works on macOS, Linux, and Windows.

In contrast to fs.unlink, del, and rimraf which permanently delete files, this only moves them to the trash, which is much safer and reversible.

But I can do the same thing with mv

Not really. The mv command isn't cross-platform and moving to trash is not just about moving the file to a "trash" directory. On all OSes you'll run into file conflicts. The user won't easily be able to restore the file. It won't work on an external drive. The trash directory location varies between Windows versions. For Linux, there's a whole spec you need to follow. On macOS, you'll lose the Put back feature.