Skip to main content

CLI tool to safely remove any file and directory by putting them in the trash

Project description


CLI tool to safely remove any file and directory by putting them in the trash

Move any file or directory in the trash in a clever and safe way when wanting to remove them. If a file or folder with the same name already exist in the trash, the file or folder to be removed will be renamed with the date before to be moved to the trash (fname + "%Y_%m_%d-%H_%M_%S").


With pip:
sudo pip3 install trashf

With yay:
yay -a trashf

With yaourt:
yaourt -a trashf


python >= 3


trashf / rt [F_PATH_01 F_PATH_02 ...]
         -h, --help        show this help message and exit


For help:

trashf -h
rt --help

Move in the trash ($HOME/.local/share/Trash/files) files and folders:

trashf titi/ toto.jpg

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for trashf, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size trashf-1.0.3-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size trashf-1.0.3.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page