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 ad-testing::send2trash

Usage Tracking

1.8.2
1 / 8 versions selected
Total downloads: 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.

Information Last Updated

Sep 8, 2025 at 17:32

License

BSD-3-Clause

Total Downloads

9