Trash command alternative for Thunar

Hi,

Maybe this question should go on the XFCE forum, but let’s give it a try.
I installed a beautify bash script that made an alias for the cmd
rm that uses the “trash” command, which I think belongs to the Nautilus file manager.

alias rm=‘trash -v’

Does it have something similar to XFCE-Thunar?

Thank you

What makes you think that?

No one knows what you installed, so:
no one can know whether something similar to it exists.

Welcome to Manjaro forum @Salvodif

Thunar has a Move to Wastebaket option in right-click menu
or use Delete to send selected items to Wastebasket

Command /usr/bin/trash is provided by trash-cli

$ pamac info trash-cli
Name                  : trash-cli
Version               : 0.23.11.10-1
Description           : Command line trashcan (recycle bin) interface
URL                   : https://github.com/andreafrancia/trash-cli
Licences              : GPL-2.0-only
Repository            : extra
Installed Size        : 839.5 kB
Groups                : --
Depends On            : python python-typing_extensions python-psutil python-six
Optional Dependencies : --
Provides              : --
Replaces              : --
Conflicts With        : --
Packager              : Alexander Epaneshnikov <alex19ep@archlinux.org>
Build Date            : Fri 26 Jan 2024 18:11:19 GMT
Validated By          : MD5 Sum  SHA-256 Sum  Signature
2 Likes

trash-cli gives you:

trash-put           trash files and directories. 
trash-empty         empty the trashcan(s).
trash-list          list trashed files.
trash-restore       restore a trashed file.
trash-rm            remove individual files from the trashcan.

Thank you that is right what I looked for but I’ve not “Delete”
command on my terminal.

That is a key on the keyboard :slight_smile:

Terminal commands to delete files provided by coreutils

ok,

I’m saying:
I got a script based on Gnome-Dolphin that use an alias for bash that when I use “rm” it uses “trash”.
Does exist something similia on Thunar

What is Gnome-Dolphin?

If you press the Delete button on your keyboard, the file is sent to trash by Thunar.

if you could post a link to this script or post it to an online pastebin it might help us better understand what you are asking for

AFAIK dolphin is KDE file manager

Two different actions:

  1. wast basket (what most users call trash), appears with right-clicking
  2. permanent deletion, which can be set via “thunar - edit - settings - behavior - contextmenu”, then also appears with right-clicking as “delete”.
    It’s all there, nothing extra needed.

Aliases are independent from the desktop environment. There might be difference what Terminal or shell is used and where the aliases are stored, but in 90% of the cases it is the same.

So yes, post the script, because i have the feeling you as a beginner user are not using all the terms correctly, which may lead to misunderstanding (there is for example no such thing as Gnome-Dolphin)