Could not delete Trash.0 folder from external hard disk





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I am using WD external hard drive and linux OS. I deleted some files in hard disk by mistake I selected those file and just pressed [delete] button instead of [shift+del] in linux. Now it created Trash.0 folder. I tried to delete files using [shift+delete] it gives following error:



Could not delete file "4.6"
Error removing file /media/root/My Passport/Trash.0/expunged/2697747326/usr/include: Directory not empty.



Error removing file /media/root/My Passport/Trash.0/expunged/3073970550/gcc/arm-linux-androideabi/4.6: Directory not empty.



I also tried to delete the folder "include and 4.6" but not working I also tried to use command:



sudo rmdir Trash.0

and



sudo rmdir --ignore-fail-on-non-empty Trash.0
still not working....










share|improve this question





























    0















    I am using WD external hard drive and linux OS. I deleted some files in hard disk by mistake I selected those file and just pressed [delete] button instead of [shift+del] in linux. Now it created Trash.0 folder. I tried to delete files using [shift+delete] it gives following error:



    Could not delete file "4.6"
    Error removing file /media/root/My Passport/Trash.0/expunged/2697747326/usr/include: Directory not empty.



    Error removing file /media/root/My Passport/Trash.0/expunged/3073970550/gcc/arm-linux-androideabi/4.6: Directory not empty.



    I also tried to delete the folder "include and 4.6" but not working I also tried to use command:



    sudo rmdir Trash.0

    and



    sudo rmdir --ignore-fail-on-non-empty Trash.0
    still not working....










    share|improve this question

























      0












      0








      0








      I am using WD external hard drive and linux OS. I deleted some files in hard disk by mistake I selected those file and just pressed [delete] button instead of [shift+del] in linux. Now it created Trash.0 folder. I tried to delete files using [shift+delete] it gives following error:



      Could not delete file "4.6"
      Error removing file /media/root/My Passport/Trash.0/expunged/2697747326/usr/include: Directory not empty.



      Error removing file /media/root/My Passport/Trash.0/expunged/3073970550/gcc/arm-linux-androideabi/4.6: Directory not empty.



      I also tried to delete the folder "include and 4.6" but not working I also tried to use command:



      sudo rmdir Trash.0

      and



      sudo rmdir --ignore-fail-on-non-empty Trash.0
      still not working....










      share|improve this question














      I am using WD external hard drive and linux OS. I deleted some files in hard disk by mistake I selected those file and just pressed [delete] button instead of [shift+del] in linux. Now it created Trash.0 folder. I tried to delete files using [shift+delete] it gives following error:



      Could not delete file "4.6"
      Error removing file /media/root/My Passport/Trash.0/expunged/2697747326/usr/include: Directory not empty.



      Error removing file /media/root/My Passport/Trash.0/expunged/3073970550/gcc/arm-linux-androideabi/4.6: Directory not empty.



      I also tried to delete the folder "include and 4.6" but not working I also tried to use command:



      sudo rmdir Trash.0

      and



      sudo rmdir --ignore-fail-on-non-empty Trash.0
      still not working....







      linux hard-drive unix xfce






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 21 '18 at 16:32









      karlkarl

      1




      1






















          4 Answers
          4






          active

          oldest

          votes


















          0














          First empty the "Trash can", e.g. in nautilus or other FM. The folder should be deletable either immediately or after reboot.






          share|improve this answer































            0














            cd to that folder and issue ls -al and check if there are any hidden files



            then do rm -rf * to recursively and forcefully remove it






            share|improve this answer































              0














              .Trash-0 folder is created to improve file recovery for external drives.



              Whenever you mount an external disk, a .Trash-* directory will be created in the "root" directory where files are moved to if deleted from the GUI, like the trash on your desktop.
              Take a backup of the files and try to format the hard-disk.



              or.....



              You need to install it:



              sudo apt-get install secure-delete


              and then



              srm -rf /media/Elements/.Trash-1000/





              share|improve this answer

































                0














                Just boot with a Live Ubuntu 18.04 MATE USB and open the folder leading up to the .Trash-0 folder and also that folder itself as Administrator (you do this by right clicking on the folder and select Open As Administrator) and now you can delete the files :-)






                share|improve this answer
























                  Your Answer








                  StackExchange.ready(function() {
                  var channelOptions = {
                  tags: "".split(" "),
                  id: "3"
                  };
                  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',
                  autoActivateHeartbeat: false,
                  convertImagesToLinks: true,
                  noModals: true,
                  showLowRepImageUploadWarning: true,
                  reputationToPostImages: 10,
                  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
                  });


                  }
                  });














                  draft saved

                  draft discarded


















                  StackExchange.ready(
                  function () {
                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1306533%2fcould-not-delete-trash-0-folder-from-external-hard-disk%23new-answer', 'question_page');
                  }
                  );

                  Post as a guest















                  Required, but never shown

























                  4 Answers
                  4






                  active

                  oldest

                  votes








                  4 Answers
                  4






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes









                  0














                  First empty the "Trash can", e.g. in nautilus or other FM. The folder should be deletable either immediately or after reboot.






                  share|improve this answer




























                    0














                    First empty the "Trash can", e.g. in nautilus or other FM. The folder should be deletable either immediately or after reboot.






                    share|improve this answer


























                      0












                      0








                      0







                      First empty the "Trash can", e.g. in nautilus or other FM. The folder should be deletable either immediately or after reboot.






                      share|improve this answer













                      First empty the "Trash can", e.g. in nautilus or other FM. The folder should be deletable either immediately or after reboot.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Mar 21 '18 at 19:14









                      DrMoishe PippikDrMoishe Pippik

                      10.4k21432




                      10.4k21432

























                          0














                          cd to that folder and issue ls -al and check if there are any hidden files



                          then do rm -rf * to recursively and forcefully remove it






                          share|improve this answer




























                            0














                            cd to that folder and issue ls -al and check if there are any hidden files



                            then do rm -rf * to recursively and forcefully remove it






                            share|improve this answer


























                              0












                              0








                              0







                              cd to that folder and issue ls -al and check if there are any hidden files



                              then do rm -rf * to recursively and forcefully remove it






                              share|improve this answer













                              cd to that folder and issue ls -al and check if there are any hidden files



                              then do rm -rf * to recursively and forcefully remove it







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Mar 28 '18 at 20:03









                              qr2qr2

                              1012




                              1012























                                  0














                                  .Trash-0 folder is created to improve file recovery for external drives.



                                  Whenever you mount an external disk, a .Trash-* directory will be created in the "root" directory where files are moved to if deleted from the GUI, like the trash on your desktop.
                                  Take a backup of the files and try to format the hard-disk.



                                  or.....



                                  You need to install it:



                                  sudo apt-get install secure-delete


                                  and then



                                  srm -rf /media/Elements/.Trash-1000/





                                  share|improve this answer






























                                    0














                                    .Trash-0 folder is created to improve file recovery for external drives.



                                    Whenever you mount an external disk, a .Trash-* directory will be created in the "root" directory where files are moved to if deleted from the GUI, like the trash on your desktop.
                                    Take a backup of the files and try to format the hard-disk.



                                    or.....



                                    You need to install it:



                                    sudo apt-get install secure-delete


                                    and then



                                    srm -rf /media/Elements/.Trash-1000/





                                    share|improve this answer




























                                      0












                                      0








                                      0







                                      .Trash-0 folder is created to improve file recovery for external drives.



                                      Whenever you mount an external disk, a .Trash-* directory will be created in the "root" directory where files are moved to if deleted from the GUI, like the trash on your desktop.
                                      Take a backup of the files and try to format the hard-disk.



                                      or.....



                                      You need to install it:



                                      sudo apt-get install secure-delete


                                      and then



                                      srm -rf /media/Elements/.Trash-1000/





                                      share|improve this answer















                                      .Trash-0 folder is created to improve file recovery for external drives.



                                      Whenever you mount an external disk, a .Trash-* directory will be created in the "root" directory where files are moved to if deleted from the GUI, like the trash on your desktop.
                                      Take a backup of the files and try to format the hard-disk.



                                      or.....



                                      You need to install it:



                                      sudo apt-get install secure-delete


                                      and then



                                      srm -rf /media/Elements/.Trash-1000/






                                      share|improve this answer














                                      share|improve this answer



                                      share|improve this answer








                                      edited Apr 1 '18 at 10:19

























                                      answered Apr 1 '18 at 9:59









                                      jimjim

                                      11




                                      11























                                          0














                                          Just boot with a Live Ubuntu 18.04 MATE USB and open the folder leading up to the .Trash-0 folder and also that folder itself as Administrator (you do this by right clicking on the folder and select Open As Administrator) and now you can delete the files :-)






                                          share|improve this answer




























                                            0














                                            Just boot with a Live Ubuntu 18.04 MATE USB and open the folder leading up to the .Trash-0 folder and also that folder itself as Administrator (you do this by right clicking on the folder and select Open As Administrator) and now you can delete the files :-)






                                            share|improve this answer


























                                              0












                                              0








                                              0







                                              Just boot with a Live Ubuntu 18.04 MATE USB and open the folder leading up to the .Trash-0 folder and also that folder itself as Administrator (you do this by right clicking on the folder and select Open As Administrator) and now you can delete the files :-)






                                              share|improve this answer













                                              Just boot with a Live Ubuntu 18.04 MATE USB and open the folder leading up to the .Trash-0 folder and also that folder itself as Administrator (you do this by right clicking on the folder and select Open As Administrator) and now you can delete the files :-)







                                              share|improve this answer












                                              share|improve this answer



                                              share|improve this answer










                                              answered Jan 26 at 14:29









                                              adenioadenio

                                              11




                                              11






























                                                  draft saved

                                                  draft discarded




















































                                                  Thanks for contributing an answer to Super User!


                                                  • Please be sure to answer the question. Provide details and share your research!

                                                  But avoid



                                                  • Asking for help, clarification, or responding to other answers.

                                                  • Making statements based on opinion; back them up with references or personal experience.


                                                  To learn more, see our tips on writing great answers.




                                                  draft saved


                                                  draft discarded














                                                  StackExchange.ready(
                                                  function () {
                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1306533%2fcould-not-delete-trash-0-folder-from-external-hard-disk%23new-answer', 'question_page');
                                                  }
                                                  );

                                                  Post as a guest















                                                  Required, but never shown





















































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown

































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown







                                                  Popular posts from this blog

                                                  "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

                                                  Alcedinidae

                                                  Origin of the phrase “under your belt”?