How can I move file into Recycle Bin / trash on different platforms using PyQt4?

It’s a good thing you’re using Python, I created a library to do just that a while ago:

http://www.hardcoded.net/articles/send-files-to-trash-on-all-platforms.htm

On PyPI: Send2Trash

Installation

Using conda:

conda install Send2Trash

Using pip:

pip install Send2Trash

Usage

Delete file or folders

from send2trash import send2trash
send2trash("directory")

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)