2

"Chuck Norris can delete the Recycling Bin."

I found this Chuck Norris joke, and, being a Linux user (admit it, we are all convinced that Linux users can, in theory, do anything on their computer) immediately wondered if this is possible. I found an article on deleting the recycle bin in Windows (even though the system will recreate it), which for me simply confirms that it must be possible in Linux as well ;D. Please note that I have no practical use for this, I'm just wondering if it's possible. Also note that there is a big distinction here: I am NOT asking how to empty the trash, I'm asking how to delete the location that trashed files go to.

1 Answers1

2

Install Gnome Tweaks from the Ubuntu Software Center and navigate to Desktop and set Wastebasket to OFF.

This hides the icon from the desktop but doesn't delete the location where trashed files are sent to [~/.local/share/Trash] which will automatically be regenerated by the system if not present.

enter image description here

So, a workaround to avoid deleted files even reaching there is to simply use ShiftDelete when deleting files.

graham
  • 10,436
  • Nice answer but *I'm asking how to delete the location that trashed files go to.* 1st part of your answer is telling how to hide icon from desktop and 2nd part, how to delete files permanently which I think doesn't address above statement properly. – Kulfy May 08 '19 at 18:02
  • @Kulfy I think you answered that in your comment to the OPs post but sometimes encouraging people to mess with the system can end in tears. It's regenerated for a reason but there is a suitable workaround. Out of sight out of mind, as they say. – graham May 08 '19 at 18:10
  • Yeah but IMO this is not messing anything since we know what we are doing, why and aftermath. I think you should include these things in your answer. – Kulfy May 08 '19 at 18:28
  • @Kulfy included as suggested for a more complete answer, thanks – graham May 08 '19 at 18:44
  • Thank you for pointing that out, @Kulfy. I agree that actually deleting the trash folder is probably not smart, I was just curious as to where it actually was and whether Linux even would let me delete it. I appreciate your concern, however. – A Person Who Dislikes Windows May 09 '19 at 20:47