36

Can someone tell me what the .Trash-1000 folder is and how can I remove/delete it?

It taking up 275 gigs of disk space.

Eliah Kagan
  • 119,640
zippy
  • 361
  • 1
  • 3
  • 3

7 Answers7

28

This is the folder of you paperbin.
If you delete something it will not be deleted from disk. It will be moved to this folder instead.

Try to empty the paperbin or delete the folder with the terminal-command as root:

sudo rm -rf /path/to/folder/.Trash-1000
Seth
  • 59,332
prophecy201
  • 2,760
  • 17
  • 22
16

GNOMEish file managers need a place to put the trashed files.

  • Deleted files on your "home" partition go to: /home/username/.local/share/Trash
  • Deleted files on other partitions can't be copied there for performance and space reasons.

So it tries to put them in the /.Trash-$UID folder. Without rw access to that folder, no trash.

Run this bash in the partition root as the user who needs a trash.

sudo mkdir .Trash-$UID && sudo chown $USER:$USER .Trash-$UID

You can delete this folder and secure the partition / to disable that feature.

sudo rm -rf .Trash-xxxx
sodo chown root:root /thepartition
1

Answers here provide ways to remove the .Trash-1000 folder itself, but an easier way to make it stop using up space is simply right-clicking on your Trash can and clicking "Empty trash", as the folder simply stores deleted files.

circl
  • 63
1

If you want to keep having a trash bin but delete the files that have been moved there and remain on disk, use:

sudo rm -rf ~/.local/share/Trash/files/*

Note in the above that rm is the command to remove, and the parameters -r means "remove directories and their contents recursively", since by default rm doesn't remove directories. The -f parameter means "ignore nonexistent files and arguments, never prompt".

At the end of the file path ~/.local/share/Trash/files/* is the character * (...read as "star"), which is a regex term that leads to all files and directories under the files/" directory being removed by the command rm.

Side note

If you'd like to learn more about how to use terminal commands to work with files, the default terminal uses an interpreted programming language called "bash". You can use the type man rm within the terminal for more information about the rm command and other common commands.

also...

An alternative method for working with directories when you're at an intermediate stage with gnu linux is gnu emacs and its "dired" package.
0

Use autotrash program from https://github.com/bneijt/autotrash with -T options, eg: autotrash -d 30 -T /mnt/share/.Trash-1000

0

If you are using Dolphin, you can use Shift + Delete while your files are selected, which will bypass the Trash folder entirely and remove the files. This can also be used to delete select files in the .Trash-1000/files directory. Also make sure to delete the corresponding files in the .Trash-1000/info folder.

Otherwise, cd into the directory and use sudo rm -rf .Trash-1000/files/* .Trash-1000/info/* as others have mentioned before.

MySurmise
  • 131
0

If you cannot empty your trash, then use this command:

sudo rm -r ~/.local/share/Trash/files/

It will remove trash files recursively.