# Move to Trash failed

## How do I fix move to trash failed?

It appears that some distributions will only trash files that are in the same filesytem as where the Trash bin is located.

The location of the Trash bin for some systems is $HOME/.local/share/Trash .

If you attempt to trash a file not in this filesystem, an attempt is made to find directory <top of filesystem>/.Trash-<uid> where <uid> is your user id (in a terminal type id to display it). If this directory does not exist, then the action will fail.

You may create this directory and set write access to it as follows:

cd to the directory where the file to be deleted is

df --human-readable . (Note the dot!) The "Mounted on" column shows the top of the filesystem.

cd <the top of the filesystem shown above>

sudo mkdir .Trash-<uid>

sudo chown <your user name> .Trash-<uid>

sudo chmod u+rwx .Trash-<uid>