I am not able to search trash anywhere. Can you please tell me a command or anything like that to empty the trash using terminal ?
You can use the ˋrmˋ command:
rm -rf ~/.local/share/Trash/*
The rm command removes (deletes) files or directories.
-f, --force Ignore nonexistant files, and never prompt before removing. -r, -R, --recursive Remove directories and their contents recursively.
The trash folder is found at:
Be careful how you use the
rm command - the files aren't sent to a trash can where you can undelete them, so it's not easy to undo.
You are looking for the
$XDG_DATA_HOME/Trash directory. The trash directory is defined in the "Desktop Trash Can Specification" of the freedesktop site. This variable is normally not available in the terminal windows, hence you will need for
trash-empty. This command follows all the specification of the Freedesktop.org and it's intelligent enough to find out where the Trash is. You will need to install it first.
There are other tools for this, like
gvfs-trash --empty which can also send items to the Trash can.
protected by heemayl Aug 3 '15 at 19:16
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?