Trash Directory for Partition ############################# :date: 2021-01-08 12:26:00 +0200 :updated: 2021-01-09 21:48:00 +0200 :category: Linux :tags: trash If you have a separate user writable drive mounted, you may have encountered the same problem I had. If your DE cannot create ``.Trash-$uid``, most DEs will not delete files to the trash at all and KDE will copy deleted files to your home partition. I find both behaviors frustrating. The solution is rather simple: look at the spec__ and create the trash directory manually. .. __: https://specifications.freedesktop.org/trash-spec/trashspec-1.0.html .. code-block:: bash # for example, your drive is mounted to /media/external # go to the drive root cd /media/external # create root owned .Trash sudo mkdir .Trash # make it world writable with a sticky bit sudo chmod 1777 .Trash .. note:: Sticky bit is used for retaining control over your files in a publicly writable directory. Only the owner of the file can delete or rename it even if other users have write permission in the parent directory. This is a typical permission for ``/tmp``. `Read more`__ .. __: https://en.wikipedia.org/wiki/Sticky_bit Now delete some file from that partition and check that is lands to ``.Trash/$uid/files``. Your trash directory now works properly.