CMD + K

send2trash

Anaconda Verified

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

Installation

To install this package, run one of the following:

Conda
$conda install main::send2trash

Usage Tracking

1.8.3
1.8.2
1.8.0
1.5.0
1.4.2
5 / 8 versions selected
Downloads (Last 6 months): 0

Description

Send2Trash is a small package that sends files to the Trash (or Recycle Bin) natively and on all platforms. On OS X, it uses native FSMoveObjectToTrashSync Cocoa calls or can use pyobjc with NSFileManager. On Windows, it uses native IFileOperation call if on Vista or newer and pywin32 is installed or falls back to SHFileOperation calls. On other platforms, if PyGObject and GIO are available, it will use this. Otherwise, it will fallback to its own implementation of the trash specifications from freedesktop.org. ctypes is used to access native libraries, so no compilation is necessary.

About

Summary

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

Last Updated

Jan 11, 2026 at 23:32

License

BSD-3-Clause

Total Downloads

33.9K

Supported Platforms

macOS-arm64
linux-64
linux-aarch64
win-64

Unsupported Platforms

linux-ppc64le Last supported version: 1.8.2
win-32 Last supported version: 1.5.0
noarch Last supported version: 1.8.0
linux-s390x Last supported version: 1.8.2
macOS-64 Last supported version: 1.8.2
linux-32 Last supported version: 1.5.0