1

I am not able to delete a folder from my trash. It shows:

enter image description here

I have followed the following: Why can't I delete a folder in my trash?

But, it did not help. My deleted folder shows up in 'Trash' folder not in ~/.local/share/Trash/. I have Ubuntu 17.04 (development branch) in my machine.

Output of sudo rm -rf ~/.local/share/Trash/* is:

Enter image description here

Output of sudo rm -rf /media/wings/B6A411BAA4117E55/.Trash-1000/ is:

Enter image description here

MarianD
  • 1,028
Wings
  • 117
  • 2
  • 19

2 Answers2

2

The description in that article "Why can't I delete a folder in my trash?" works only for your local Trash. If the file you want to delete is on an external drive, you need to type

sudo rm -rf /path/to/external-drive-mountpoint/.Trashes/*

replace the path accordingly.

Update

According to the error messages, the problem exists because your external drive is mounted read only. There are many questions around here related to that problem.

pLumo
  • 26,947
0

I needed to check disk for errors but fsck did not work too. Then I used my Windows to

  • check for errors in that drive, and
  • repair.

Did reboot and everything was ok.

Wings
  • 117
  • 2
  • 19