Trash icon
Trash icon

Trash

Move files and directories to the trash.

Cost / License

  • Free
  • Open Source

Platforms

  • Mac
  • Windows
  • Linux
-
No reviews
1like
0comments
0news articles

Features

Suggest and vote on features
  1.  Command line interface

 Tags

  • move-to-trash
  • delete-files
  • delete-directories

Trash News & Activities

Highlights All activities

Recent activities

No activities found.

Trash information

  • Developed by

    NO flagSindre Sorhus
  • Licensing

    Open Source (MIT) and Free product.
  • Written in

  • Alternatives

    3 alternatives listed
  • Supported Languages

    • English

AlternativeTo Category

OS & Utilities

GitHub repository

  •  2,641 Stars
  •  82 Forks
  •  11 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?
Post comment/review

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.

Official Links