Python library to natively send files to Trash (or Recycle bin) on all platforms.

JSON →
library 2.1.0 ·python
verified Jun 9, 2026 install

Send2Trash is a small Python package (version 2.1.0) that moves files and directories to the operating system's trash or recycle bin, rather than permanently deleting them. It provides native support for macOS (Cocoa calls), Windows (IFileOperation/SHFileOperation), and Linux/BSD (freedesktop.org trash specification or PyGObject/GIO fallback). It is actively maintained with a moderate release cadence, with the latest stable release in January 2026.

total hits 28
actors 7 distinct systems
last hit 7d ago AhrefsBot
Amazonbot
4
MetaBot
4
Script
2
ChatGPT-User
1
Search engines
1
Humans
6

top countries 🇨🇦 Canada · 🇺🇸 United States · VN · 🇩🇪 Germany · LK