How to disable trash can in Thunar/XFCE

file managementthunarxfce

I found myself always holding Shift when I delete a file with Thunar (the XFCE file manager).

When I was using Windows I was always disabling "recycle bin" immediately after installation. I've looked for similar option in Thunar settings but had no luck finding it.

Do you happen to know a way?

Best Answer

According to the Xfce FAQ, you cannot disable the Trash.

They provide three suggestions, two of which which are also mentioned in the comments above:

  1. Use Shift + del to bypass the trash bin and immediately delete something for real.

  2. use cron to clean the trash every now and then.

  3. or create custom action for permanent delete(like in gnome) with action: rm %f then in context menu you'll have button “permanent delete”

Personally, I use the a cron job that runs every 24 hours that calls trash-empty. You can simply call the command by itself, or give an option(in days) to remove files that have been in the trash longer than that specified number of days.

Related Question