Command like this:
rm -rf ~/.local/share/Trash/*
doesn't remove all files from trash, are there any other path to trash files?
Updated:
simply files from other drive store into other folder.
Command like this:
rm -rf ~/.local/share/Trash/*
doesn't remove all files from trash, are there any other path to trash files?
Updated:
simply files from other drive store into other folder.
If files from second drive, trash files store on that drive, for example you can have
/run/media/<username>/<uuid>/.Trash-1000/files/*
only files deleted from home folder store into:
~/.local/share/.Trash
So it was done to avoid copy files from another driver to local trash.
As mentioned here: https://askubuntu.com/questions/327943/how-to-open-trash-through-terminal
(⬆️ also older command-line suggestion)
Gnome Virtual File System (GVFS) is involved in the Trash management, so the following command may help about managing Trash from command line, so emptying.
XFCE docs bellow confirms that the Trash is managed by gvfs related packages.
https://docs.xfce.org/xfce/thunar/unix-filesystem
So, on recent distribution gio
command will be your savior:
(Here, I tested it under XFCE 4.16 under xubuntu 22.04)
get the list of Trashed files:
gio list trash://
delete all them!
gio trash --empty