Empty trash in ubuntu

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm trying to empty my trash using the UI but it doesn't work. i tried to use this command rm -rf ~/.local/share/Trash/* but it does not success with messages like rm: cannot remove 'file.txt': Read-only file system. any solution










share|improve this question









New contributor




Achraf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    0
    down vote

    favorite












    I'm trying to empty my trash using the UI but it doesn't work. i tried to use this command rm -rf ~/.local/share/Trash/* but it does not success with messages like rm: cannot remove 'file.txt': Read-only file system. any solution










    share|improve this question









    New contributor




    Achraf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm trying to empty my trash using the UI but it doesn't work. i tried to use this command rm -rf ~/.local/share/Trash/* but it does not success with messages like rm: cannot remove 'file.txt': Read-only file system. any solution










      share|improve this question









      New contributor




      Achraf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I'm trying to empty my trash using the UI but it doesn't work. i tried to use this command rm -rf ~/.local/share/Trash/* but it does not success with messages like rm: cannot remove 'file.txt': Read-only file system. any solution







      ubuntu permissions rm delete






      share|improve this question









      New contributor




      Achraf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Achraf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 17 mins ago





















      New contributor




      Achraf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 26 mins ago









      Achraf

      11




      11




      New contributor




      Achraf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Achraf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Achraf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          The ~/.local/share/Trash directory contains 2 sub-directories, files and info. When you move something into the trash using the GUI, it actually moves it into the files sub-directory, and may put some meta-info into the info sub-directory. So, if you want to remove items in the Trash from the command line, you really want to do



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


          Hope this helps.






          share|improve this answer




















          • same probleme rm: cannot remove 'file.txt': Read-only file system. any solution i think it's a permission probleme i have only read accesson that dir
            – Achraf
            7 mins ago










          • Is there a file.txt.trashinfo file in ~/.local/share/Trash/info? If so, what is in there for the Path?
            – Lewis M
            4 mins ago










          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Achraf is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f480615%2fempty-trash-in-ubuntu%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote













          The ~/.local/share/Trash directory contains 2 sub-directories, files and info. When you move something into the trash using the GUI, it actually moves it into the files sub-directory, and may put some meta-info into the info sub-directory. So, if you want to remove items in the Trash from the command line, you really want to do



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


          Hope this helps.






          share|improve this answer




















          • same probleme rm: cannot remove 'file.txt': Read-only file system. any solution i think it's a permission probleme i have only read accesson that dir
            – Achraf
            7 mins ago










          • Is there a file.txt.trashinfo file in ~/.local/share/Trash/info? If so, what is in there for the Path?
            – Lewis M
            4 mins ago














          up vote
          1
          down vote













          The ~/.local/share/Trash directory contains 2 sub-directories, files and info. When you move something into the trash using the GUI, it actually moves it into the files sub-directory, and may put some meta-info into the info sub-directory. So, if you want to remove items in the Trash from the command line, you really want to do



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


          Hope this helps.






          share|improve this answer




















          • same probleme rm: cannot remove 'file.txt': Read-only file system. any solution i think it's a permission probleme i have only read accesson that dir
            – Achraf
            7 mins ago










          • Is there a file.txt.trashinfo file in ~/.local/share/Trash/info? If so, what is in there for the Path?
            – Lewis M
            4 mins ago












          up vote
          1
          down vote










          up vote
          1
          down vote









          The ~/.local/share/Trash directory contains 2 sub-directories, files and info. When you move something into the trash using the GUI, it actually moves it into the files sub-directory, and may put some meta-info into the info sub-directory. So, if you want to remove items in the Trash from the command line, you really want to do



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


          Hope this helps.






          share|improve this answer












          The ~/.local/share/Trash directory contains 2 sub-directories, files and info. When you move something into the trash using the GUI, it actually moves it into the files sub-directory, and may put some meta-info into the info sub-directory. So, if you want to remove items in the Trash from the command line, you really want to do



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


          Hope this helps.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 13 mins ago









          Lewis M

          6155




          6155











          • same probleme rm: cannot remove 'file.txt': Read-only file system. any solution i think it's a permission probleme i have only read accesson that dir
            – Achraf
            7 mins ago










          • Is there a file.txt.trashinfo file in ~/.local/share/Trash/info? If so, what is in there for the Path?
            – Lewis M
            4 mins ago
















          • same probleme rm: cannot remove 'file.txt': Read-only file system. any solution i think it's a permission probleme i have only read accesson that dir
            – Achraf
            7 mins ago










          • Is there a file.txt.trashinfo file in ~/.local/share/Trash/info? If so, what is in there for the Path?
            – Lewis M
            4 mins ago















          same probleme rm: cannot remove 'file.txt': Read-only file system. any solution i think it's a permission probleme i have only read accesson that dir
          – Achraf
          7 mins ago




          same probleme rm: cannot remove 'file.txt': Read-only file system. any solution i think it's a permission probleme i have only read accesson that dir
          – Achraf
          7 mins ago












          Is there a file.txt.trashinfo file in ~/.local/share/Trash/info? If so, what is in there for the Path?
          – Lewis M
          4 mins ago




          Is there a file.txt.trashinfo file in ~/.local/share/Trash/info? If so, what is in there for the Path?
          – Lewis M
          4 mins ago










          Achraf is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          Achraf is a new contributor. Be nice, and check out our Code of Conduct.












          Achraf is a new contributor. Be nice, and check out our Code of Conduct.











          Achraf is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f480615%2fempty-trash-in-ubuntu%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          The Forum (Inglewood, California)

          Palaiologos