Trash logo

Trash

Moves files and directories to the system's trash, enabling safe and reversible deletion across macOS, Linux, and Windows.

Made by Sindre Sorhus

  • delete-directories

  • delete-files

  • move-to-trash

What is Trash?

Trash is a cross-platform solution that simplifies the process of managing and recovering deleted files across various operating systems. Unlike traditional file deletion methods, Trash moves files and directories to a dedicated trash location, providing a safe and reversible way to manage unwanted content

Highlights

  • Cross-platform compatibility: Trash works seamlessly on macOS, Linux, and Windows, ensuring a consistent user experience regardless of the operating system
  • Reversible file deletion: Files and directories moved to the Trash can be easily restored, unlike permanent deletion methods like fs.unlink, del, and rimraf
  • Automated file conflict resolution: Trash handles file conflicts that can arise when moving items to the trash, ensuring a smooth and user-friendly experience
  • Portable trash storage: Trash works with external drives, allowing users to manage deleted files across different storage locations
  • Integrated trash management: Trash simplifies the process of accessing and managing the trash, providing features like the "Put back" option found in macOS.

Platforms

  • Linux
  • iOS
  • Mac
  • Web
  • Windows

Languages

  • English

Social

Features

    • Command line interface