{"id":2881,"date":"2018-04-27T09:27:36","date_gmt":"2018-04-27T09:27:36","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=2881"},"modified":"2026-06-17T09:15:25","modified_gmt":"2026-06-17T08:15:25","slug":"rubbish-bin","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/command-line\/file-system-command-line\/rubbish-bin","title":{"rendered":"Rubbish Bin"},"content":{"rendered":"<p>\nTrash directory is at:\n<\/p>\n<p>\n\/home\/$USER\/.local\/share\/Trash\n<\/p>\n<p>\nIf you delete&nbsp;something as root it is at:\n<\/p>\n<p>\n\/root\/.local\/share\/Trash\n<\/p>\n<p>\nThe Trash directory is first created when a user deletes a file. Within Trash there are three subdirectories:\n<\/p>\n<p style=\"margin-left: 40px;\">\nfiles &#8211; where deleted files are stored until the trash is emptied\n<\/p>\n<p style=\"margin-left: 40px;\">\ninfo &#8211; stores information on where the files once were and when they were deleted\n<\/p>\n<p style=\"margin-left: 40px;\">\nexpunged &#8211; where files are briefly moved to when the trash is emptied (but may contain some owned by other users from directories you deleted).\n<\/p>\n<h4>\nClear the rubbish bin from the command line<br \/>\n<\/h4>\n<p>\nNormal user account\n<\/p>\n<pre>\r\n<code>\r\nrm -rf ~\/.local\/share\/Trash\/files\r\n<\/code><\/pre>\n<p>\nRoot user\n<\/p>\n<pre>\r\n<code>\r\nsudo rm -rf \/root\/.local\/share\/Trash\/files\r\n<\/code><\/pre>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Trash directory is at: \/home\/$USER\/.local\/share\/Trash If you delete&nbsp;something as root it is at: \/root\/.local\/share\/Trash The Trash directory is first created when a user deletes a file. Within Trash there are three subdirectories: files &#8211; where deleted files are stored until the trash is emptied info &#8211; stores information on where the files once were and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[133],"tags":[],"class_list":["post-2881","post","type-post","status-publish","format-standard","hentry","category-file-system-command-line"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=2881"}],"version-history":[{"count":2,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2881\/revisions"}],"predecessor-version":[{"id":2883,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2881\/revisions\/2883"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=2881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=2881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=2881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}