How To Delete Trash From Command Line in Linux / Fedora Core 6

By Angsuman Chakraborty, Gaea News Network
Wednesday, May 2, 2007

The Trashcan on your Fedora Core desktop (tested for gnome) is actually located in ~/Trash directory. So a simple commaond as below should clear your trash:
rm -rf ~/.Trash/*

Why did I need this?
There were some files in the Trash can which I didn’t have permission to clean. Most likely I used some program with root permissions which moved files to the Trash.

Why you may need this?
In NFS based systems home directory is located in the NFS server. So it might be space saving to periodically delete the Trash directory for all NFS users.

YOUR VIEW POINT
NAME : (REQUIRED)
MAIL : (REQUIRED)
will not be displayed
WEBSITE : (OPTIONAL)
YOUR
COMMENT :