CMD + K

send2trash

Community

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 anaconda-python-gte-3.10::send2trash

Usage Tracking

1.8.2
1.8.0
1.5.0
3 / 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

Apr 1, 2025 at 00:07

License

BSD-3-Clause

Total Downloads

8

Supported Platforms

linux-64

Unsupported Platforms

noarch Last supported version: 1.8.0