“cannot remove 'some_directory': Directory not empty”mv: cannot remove directory: Directory not emptyCan...

Was Wolfgang Unziker the last Amateur GM?

Old story where computer expert digitally animates The Lord of the Rings

Using PTSerif-TLF for Cyrillic with TeX Gyre Pagella

How soon after takeoff can you recline your airplane seat?

Why would a propellor have blades of different lengths?

Why are examinees often not allowed to leave during the start and end of an exam?

Why will we fail creating a self sustaining off world colony?

Russian equivalents of 能骗就骗 (if you can cheat, then cheat)

GFCI versus circuit breaker

Is this house-rule removing the increased effect of cantrips at higher character levels balanced?

Is my background sufficient to start Quantum Computing

What is this fluorinated organic substance?

Disk usage confusion: 10G missing on Linux home partition on SSD

How can I change my buffer system for protein purification?

Turing Machines: What is the difference between recognizing, deciding, total, accepting, rejecting?

Square wave to sawtooth wave using two BJT

Which are more efficient in putting out wildfires: planes or helicopters?

Tricky riddle from sister

Find the closest three-digit hex colour

How can I get a file's size in C++ in 2019 with C++ 17?

How can solar sailed ships be protected from space debris?

Why is quantum gravity non-renormalizable?

usage of y" not just for locations?

Non-inverting amplifier ; Single supply ; Bipolar input



“cannot remove 'some_directory': Directory not empty”


mv: cannot remove directory: Directory not emptyCan rm recursively remove empty directories?How to delete this undeletable directory?xdg user dirs: not relocating although set?rm: Directory resources is not emptyrm -rf: cannot remove `/opt/jetty': Directory not emptysudo rm -rf returns “cannot remove directory” on empty directory owned by rootmv: cannot remove directory: Directory not emptycannot move Directory not emptyIgnore 'cannot remove `dir`: Is a directory messagecannot permanently delete Xcode.app in trash, not even if with “sudo rm -rf” because directory is not empty?













25















I tried to delete some directory, but



$ rm DE.aspx_files -r
rm: cannot remove `DE.aspx_files': Directory not empty


But listing its content returns none



$ ls DE.aspx_files
$


Added: Actually



$ ls -la DE.aspx_files

total 4
drwx------ 1 ting ting 4096 Sep 14 20:48 .
drwx------ 1 ting ting 0 Sep 13 22:34 ..
-rw------- 1 ting ting 0 Sep 13 22:34 .fuse_hidden0001d4bf00000006


When I try to rm .fuse_hidden0001d4bf00000006, it is deleted, but another new .fuse_hidden0001d4bf00000007 created.



So I wonder what happened, and how to fix this problem?



Note: it is a newly bought external portable HDD, and I just copy some files to it using a data recovery program.



OS: Ubuntu 12.04



Thanks!










share|improve this question




















  • 3





    You need to figure out what's mounting a FUSE filesystem there. Try mount | fgrep fuse to find it, and fusermount -u <mountpoint> to unmount it before trying to delete your directory.

    – CodeGnome
    Sep 15 '12 at 2:24













  • How do you delete the file without mounting?

    – Stephen Boston
    Aug 31 '18 at 20:29
















25















I tried to delete some directory, but



$ rm DE.aspx_files -r
rm: cannot remove `DE.aspx_files': Directory not empty


But listing its content returns none



$ ls DE.aspx_files
$


Added: Actually



$ ls -la DE.aspx_files

total 4
drwx------ 1 ting ting 4096 Sep 14 20:48 .
drwx------ 1 ting ting 0 Sep 13 22:34 ..
-rw------- 1 ting ting 0 Sep 13 22:34 .fuse_hidden0001d4bf00000006


When I try to rm .fuse_hidden0001d4bf00000006, it is deleted, but another new .fuse_hidden0001d4bf00000007 created.



So I wonder what happened, and how to fix this problem?



Note: it is a newly bought external portable HDD, and I just copy some files to it using a data recovery program.



OS: Ubuntu 12.04



Thanks!










share|improve this question




















  • 3





    You need to figure out what's mounting a FUSE filesystem there. Try mount | fgrep fuse to find it, and fusermount -u <mountpoint> to unmount it before trying to delete your directory.

    – CodeGnome
    Sep 15 '12 at 2:24













  • How do you delete the file without mounting?

    – Stephen Boston
    Aug 31 '18 at 20:29














25












25








25


6






I tried to delete some directory, but



$ rm DE.aspx_files -r
rm: cannot remove `DE.aspx_files': Directory not empty


But listing its content returns none



$ ls DE.aspx_files
$


Added: Actually



$ ls -la DE.aspx_files

total 4
drwx------ 1 ting ting 4096 Sep 14 20:48 .
drwx------ 1 ting ting 0 Sep 13 22:34 ..
-rw------- 1 ting ting 0 Sep 13 22:34 .fuse_hidden0001d4bf00000006


When I try to rm .fuse_hidden0001d4bf00000006, it is deleted, but another new .fuse_hidden0001d4bf00000007 created.



So I wonder what happened, and how to fix this problem?



Note: it is a newly bought external portable HDD, and I just copy some files to it using a data recovery program.



OS: Ubuntu 12.04



Thanks!










share|improve this question
















I tried to delete some directory, but



$ rm DE.aspx_files -r
rm: cannot remove `DE.aspx_files': Directory not empty


But listing its content returns none



$ ls DE.aspx_files
$


Added: Actually



$ ls -la DE.aspx_files

total 4
drwx------ 1 ting ting 4096 Sep 14 20:48 .
drwx------ 1 ting ting 0 Sep 13 22:34 ..
-rw------- 1 ting ting 0 Sep 13 22:34 .fuse_hidden0001d4bf00000006


When I try to rm .fuse_hidden0001d4bf00000006, it is deleted, but another new .fuse_hidden0001d4bf00000007 created.



So I wonder what happened, and how to fix this problem?



Note: it is a newly bought external portable HDD, and I just copy some files to it using a data recovery program.



OS: Ubuntu 12.04



Thanks!







directory






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 15 '12 at 0:51







Tim

















asked Sep 15 '12 at 0:34









TimTim

29.7k85 gold badges279 silver badges523 bronze badges




29.7k85 gold badges279 silver badges523 bronze badges








  • 3





    You need to figure out what's mounting a FUSE filesystem there. Try mount | fgrep fuse to find it, and fusermount -u <mountpoint> to unmount it before trying to delete your directory.

    – CodeGnome
    Sep 15 '12 at 2:24













  • How do you delete the file without mounting?

    – Stephen Boston
    Aug 31 '18 at 20:29














  • 3





    You need to figure out what's mounting a FUSE filesystem there. Try mount | fgrep fuse to find it, and fusermount -u <mountpoint> to unmount it before trying to delete your directory.

    – CodeGnome
    Sep 15 '12 at 2:24













  • How do you delete the file without mounting?

    – Stephen Boston
    Aug 31 '18 at 20:29








3




3





You need to figure out what's mounting a FUSE filesystem there. Try mount | fgrep fuse to find it, and fusermount -u <mountpoint> to unmount it before trying to delete your directory.

– CodeGnome
Sep 15 '12 at 2:24







You need to figure out what's mounting a FUSE filesystem there. Try mount | fgrep fuse to find it, and fusermount -u <mountpoint> to unmount it before trying to delete your directory.

– CodeGnome
Sep 15 '12 at 2:24















How do you delete the file without mounting?

– Stephen Boston
Aug 31 '18 at 20:29





How do you delete the file without mounting?

– Stephen Boston
Aug 31 '18 at 20:29










7 Answers
7






active

oldest

votes


















13














Hidden Files



You may have hidden files. You can find them with ls -la to make sure you're okay with really deleting them first. Then you can delete the files before running rm -r or rmdir as needed.



Forcing the Recursive Delete



You can also just do rm -rf to force the recursive deletion even if the target directory contains files. All the usual warnings apply, but it will get the job done regardless of what your directory contains--as long as you have permissions to delete the files and directories, of course.






share|improve this answer



















  • 1





    also, you can run find DE.aspx_files -exec ls -la {} ; to identify hidden files, or files named with special characters.

    – Tim Kennedy
    Sep 15 '12 at 0:49











  • Thanks, I have identified the culprit hidden file, which can be deleted but a new sibling is generated. Please see my added part. Forcing deletion doesn't work either, because "Directory not empty".

    – Tim
    Sep 15 '12 at 0:52





















53














Files of the form .fuse_hidden* are created by FUSE filesystems when a file is deleted but still in use somewhere and must still have a directory entry. This is similar to .nfs* files on directories exported over NFS.



Run df -T . to see the type of filesystem that's mounted on the current directory and its mount point. For an external hard disk, chances are that this is an NTFS filesystem mounted through the NTFS-3G driver, which is base on FUSE.



The name is a fake name that the filesystem driver invents for a deleted file. You can't delete the file (or rather, if you create the file, it reappears under another name). You can't delete the directory either, since it isn't empty. You'll need to find what is using this file. The most likely cause of being in use is if it's open by some application. Run lsof /media/mount-point where /media/mount-point is the filesystem mount point and look for an open file in that directory.






share|improve this answer



















  • 6





    THIS answer is the one which actually solves the problem

    – Martin Erhardt
    Jul 8 '13 at 17:23











  • Thanks, it works. I used this answer and saw a bunch of stuff that was using my folders. Rebooted, then tried to see the same list again - it was empty. And then the deletion went smoothly.

    – Sevastyan
    Jul 18 '18 at 7:35



















10














For external hard disks this problem could be resolved by,




  • Right Click on the folder and select Move to Trash

  • Empty the Trash


It worked for me even if rm -rf didn't work.






share|improve this answer



















  • 1





    Yes this works. Why?! However the files are then in the trash and are just as problematic.

    – Stephen Boston
    Aug 31 '18 at 20:16



















-1














If on the mac, be aware also of *.localized files, which may become invisible even to 'ls -la', 'find' and their ilk on a FUSE filesystem. [ This discovered using a ConnectedData Transporter-created FUSE filesystem on a MacBook Pro.]






share|improve this answer































    -1














    This can happen when you are seeding a file in a torrent client too. Just make sure you shut off the torrent client, or remove the seeding torrent.






    share|improve this answer































      -1














      A common possibility is that the directory is being hold by a running process. Run ps aux to check for anything suspicious. Also, try to restart the machine.






      share|improve this answer































        -1














        I couldn't remove a directory on Windows 10 with Git Bash:



        $ rm -rf qt3d-editor
        rm: cannot remove 'qt3d-editor': Directory not empty


        The directory looks empty:



        $ ls -a qt3d-editor/
        ./ ../


        Finally, I deleted the directory by opening Windows file explorer and right click menu.






        share|improve this answer
























          protected by dr01 22 mins ago



          Thank you for your interest in this question.
          Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



          Would you like to answer one of these unanswered questions instead?














          7 Answers
          7






          active

          oldest

          votes








          7 Answers
          7






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          13














          Hidden Files



          You may have hidden files. You can find them with ls -la to make sure you're okay with really deleting them first. Then you can delete the files before running rm -r or rmdir as needed.



          Forcing the Recursive Delete



          You can also just do rm -rf to force the recursive deletion even if the target directory contains files. All the usual warnings apply, but it will get the job done regardless of what your directory contains--as long as you have permissions to delete the files and directories, of course.






          share|improve this answer



















          • 1





            also, you can run find DE.aspx_files -exec ls -la {} ; to identify hidden files, or files named with special characters.

            – Tim Kennedy
            Sep 15 '12 at 0:49











          • Thanks, I have identified the culprit hidden file, which can be deleted but a new sibling is generated. Please see my added part. Forcing deletion doesn't work either, because "Directory not empty".

            – Tim
            Sep 15 '12 at 0:52


















          13














          Hidden Files



          You may have hidden files. You can find them with ls -la to make sure you're okay with really deleting them first. Then you can delete the files before running rm -r or rmdir as needed.



          Forcing the Recursive Delete



          You can also just do rm -rf to force the recursive deletion even if the target directory contains files. All the usual warnings apply, but it will get the job done regardless of what your directory contains--as long as you have permissions to delete the files and directories, of course.






          share|improve this answer



















          • 1





            also, you can run find DE.aspx_files -exec ls -la {} ; to identify hidden files, or files named with special characters.

            – Tim Kennedy
            Sep 15 '12 at 0:49











          • Thanks, I have identified the culprit hidden file, which can be deleted but a new sibling is generated. Please see my added part. Forcing deletion doesn't work either, because "Directory not empty".

            – Tim
            Sep 15 '12 at 0:52
















          13












          13








          13







          Hidden Files



          You may have hidden files. You can find them with ls -la to make sure you're okay with really deleting them first. Then you can delete the files before running rm -r or rmdir as needed.



          Forcing the Recursive Delete



          You can also just do rm -rf to force the recursive deletion even if the target directory contains files. All the usual warnings apply, but it will get the job done regardless of what your directory contains--as long as you have permissions to delete the files and directories, of course.






          share|improve this answer













          Hidden Files



          You may have hidden files. You can find them with ls -la to make sure you're okay with really deleting them first. Then you can delete the files before running rm -r or rmdir as needed.



          Forcing the Recursive Delete



          You can also just do rm -rf to force the recursive deletion even if the target directory contains files. All the usual warnings apply, but it will get the job done regardless of what your directory contains--as long as you have permissions to delete the files and directories, of course.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 15 '12 at 0:45









          CodeGnomeCodeGnome

          5,9681 gold badge12 silver badges23 bronze badges




          5,9681 gold badge12 silver badges23 bronze badges








          • 1





            also, you can run find DE.aspx_files -exec ls -la {} ; to identify hidden files, or files named with special characters.

            – Tim Kennedy
            Sep 15 '12 at 0:49











          • Thanks, I have identified the culprit hidden file, which can be deleted but a new sibling is generated. Please see my added part. Forcing deletion doesn't work either, because "Directory not empty".

            – Tim
            Sep 15 '12 at 0:52
















          • 1





            also, you can run find DE.aspx_files -exec ls -la {} ; to identify hidden files, or files named with special characters.

            – Tim Kennedy
            Sep 15 '12 at 0:49











          • Thanks, I have identified the culprit hidden file, which can be deleted but a new sibling is generated. Please see my added part. Forcing deletion doesn't work either, because "Directory not empty".

            – Tim
            Sep 15 '12 at 0:52










          1




          1





          also, you can run find DE.aspx_files -exec ls -la {} ; to identify hidden files, or files named with special characters.

          – Tim Kennedy
          Sep 15 '12 at 0:49





          also, you can run find DE.aspx_files -exec ls -la {} ; to identify hidden files, or files named with special characters.

          – Tim Kennedy
          Sep 15 '12 at 0:49













          Thanks, I have identified the culprit hidden file, which can be deleted but a new sibling is generated. Please see my added part. Forcing deletion doesn't work either, because "Directory not empty".

          – Tim
          Sep 15 '12 at 0:52







          Thanks, I have identified the culprit hidden file, which can be deleted but a new sibling is generated. Please see my added part. Forcing deletion doesn't work either, because "Directory not empty".

          – Tim
          Sep 15 '12 at 0:52













          53














          Files of the form .fuse_hidden* are created by FUSE filesystems when a file is deleted but still in use somewhere and must still have a directory entry. This is similar to .nfs* files on directories exported over NFS.



          Run df -T . to see the type of filesystem that's mounted on the current directory and its mount point. For an external hard disk, chances are that this is an NTFS filesystem mounted through the NTFS-3G driver, which is base on FUSE.



          The name is a fake name that the filesystem driver invents for a deleted file. You can't delete the file (or rather, if you create the file, it reappears under another name). You can't delete the directory either, since it isn't empty. You'll need to find what is using this file. The most likely cause of being in use is if it's open by some application. Run lsof /media/mount-point where /media/mount-point is the filesystem mount point and look for an open file in that directory.






          share|improve this answer



















          • 6





            THIS answer is the one which actually solves the problem

            – Martin Erhardt
            Jul 8 '13 at 17:23











          • Thanks, it works. I used this answer and saw a bunch of stuff that was using my folders. Rebooted, then tried to see the same list again - it was empty. And then the deletion went smoothly.

            – Sevastyan
            Jul 18 '18 at 7:35
















          53














          Files of the form .fuse_hidden* are created by FUSE filesystems when a file is deleted but still in use somewhere and must still have a directory entry. This is similar to .nfs* files on directories exported over NFS.



          Run df -T . to see the type of filesystem that's mounted on the current directory and its mount point. For an external hard disk, chances are that this is an NTFS filesystem mounted through the NTFS-3G driver, which is base on FUSE.



          The name is a fake name that the filesystem driver invents for a deleted file. You can't delete the file (or rather, if you create the file, it reappears under another name). You can't delete the directory either, since it isn't empty. You'll need to find what is using this file. The most likely cause of being in use is if it's open by some application. Run lsof /media/mount-point where /media/mount-point is the filesystem mount point and look for an open file in that directory.






          share|improve this answer



















          • 6





            THIS answer is the one which actually solves the problem

            – Martin Erhardt
            Jul 8 '13 at 17:23











          • Thanks, it works. I used this answer and saw a bunch of stuff that was using my folders. Rebooted, then tried to see the same list again - it was empty. And then the deletion went smoothly.

            – Sevastyan
            Jul 18 '18 at 7:35














          53












          53








          53







          Files of the form .fuse_hidden* are created by FUSE filesystems when a file is deleted but still in use somewhere and must still have a directory entry. This is similar to .nfs* files on directories exported over NFS.



          Run df -T . to see the type of filesystem that's mounted on the current directory and its mount point. For an external hard disk, chances are that this is an NTFS filesystem mounted through the NTFS-3G driver, which is base on FUSE.



          The name is a fake name that the filesystem driver invents for a deleted file. You can't delete the file (or rather, if you create the file, it reappears under another name). You can't delete the directory either, since it isn't empty. You'll need to find what is using this file. The most likely cause of being in use is if it's open by some application. Run lsof /media/mount-point where /media/mount-point is the filesystem mount point and look for an open file in that directory.






          share|improve this answer













          Files of the form .fuse_hidden* are created by FUSE filesystems when a file is deleted but still in use somewhere and must still have a directory entry. This is similar to .nfs* files on directories exported over NFS.



          Run df -T . to see the type of filesystem that's mounted on the current directory and its mount point. For an external hard disk, chances are that this is an NTFS filesystem mounted through the NTFS-3G driver, which is base on FUSE.



          The name is a fake name that the filesystem driver invents for a deleted file. You can't delete the file (or rather, if you create the file, it reappears under another name). You can't delete the directory either, since it isn't empty. You'll need to find what is using this file. The most likely cause of being in use is if it's open by some application. Run lsof /media/mount-point where /media/mount-point is the filesystem mount point and look for an open file in that directory.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 16 '12 at 23:57









          GillesGilles

          561k134 gold badges1157 silver badges1663 bronze badges




          561k134 gold badges1157 silver badges1663 bronze badges








          • 6





            THIS answer is the one which actually solves the problem

            – Martin Erhardt
            Jul 8 '13 at 17:23











          • Thanks, it works. I used this answer and saw a bunch of stuff that was using my folders. Rebooted, then tried to see the same list again - it was empty. And then the deletion went smoothly.

            – Sevastyan
            Jul 18 '18 at 7:35














          • 6





            THIS answer is the one which actually solves the problem

            – Martin Erhardt
            Jul 8 '13 at 17:23











          • Thanks, it works. I used this answer and saw a bunch of stuff that was using my folders. Rebooted, then tried to see the same list again - it was empty. And then the deletion went smoothly.

            – Sevastyan
            Jul 18 '18 at 7:35








          6




          6





          THIS answer is the one which actually solves the problem

          – Martin Erhardt
          Jul 8 '13 at 17:23





          THIS answer is the one which actually solves the problem

          – Martin Erhardt
          Jul 8 '13 at 17:23













          Thanks, it works. I used this answer and saw a bunch of stuff that was using my folders. Rebooted, then tried to see the same list again - it was empty. And then the deletion went smoothly.

          – Sevastyan
          Jul 18 '18 at 7:35





          Thanks, it works. I used this answer and saw a bunch of stuff that was using my folders. Rebooted, then tried to see the same list again - it was empty. And then the deletion went smoothly.

          – Sevastyan
          Jul 18 '18 at 7:35











          10














          For external hard disks this problem could be resolved by,




          • Right Click on the folder and select Move to Trash

          • Empty the Trash


          It worked for me even if rm -rf didn't work.






          share|improve this answer



















          • 1





            Yes this works. Why?! However the files are then in the trash and are just as problematic.

            – Stephen Boston
            Aug 31 '18 at 20:16
















          10














          For external hard disks this problem could be resolved by,




          • Right Click on the folder and select Move to Trash

          • Empty the Trash


          It worked for me even if rm -rf didn't work.






          share|improve this answer



















          • 1





            Yes this works. Why?! However the files are then in the trash and are just as problematic.

            – Stephen Boston
            Aug 31 '18 at 20:16














          10












          10








          10







          For external hard disks this problem could be resolved by,




          • Right Click on the folder and select Move to Trash

          • Empty the Trash


          It worked for me even if rm -rf didn't work.






          share|improve this answer













          For external hard disks this problem could be resolved by,




          • Right Click on the folder and select Move to Trash

          • Empty the Trash


          It worked for me even if rm -rf didn't work.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 30 '17 at 17:15









          DileepNimanthaDileepNimantha

          1011 silver badge2 bronze badges




          1011 silver badge2 bronze badges








          • 1





            Yes this works. Why?! However the files are then in the trash and are just as problematic.

            – Stephen Boston
            Aug 31 '18 at 20:16














          • 1





            Yes this works. Why?! However the files are then in the trash and are just as problematic.

            – Stephen Boston
            Aug 31 '18 at 20:16








          1




          1





          Yes this works. Why?! However the files are then in the trash and are just as problematic.

          – Stephen Boston
          Aug 31 '18 at 20:16





          Yes this works. Why?! However the files are then in the trash and are just as problematic.

          – Stephen Boston
          Aug 31 '18 at 20:16











          -1














          If on the mac, be aware also of *.localized files, which may become invisible even to 'ls -la', 'find' and their ilk on a FUSE filesystem. [ This discovered using a ConnectedData Transporter-created FUSE filesystem on a MacBook Pro.]






          share|improve this answer




























            -1














            If on the mac, be aware also of *.localized files, which may become invisible even to 'ls -la', 'find' and their ilk on a FUSE filesystem. [ This discovered using a ConnectedData Transporter-created FUSE filesystem on a MacBook Pro.]






            share|improve this answer


























              -1












              -1








              -1







              If on the mac, be aware also of *.localized files, which may become invisible even to 'ls -la', 'find' and their ilk on a FUSE filesystem. [ This discovered using a ConnectedData Transporter-created FUSE filesystem on a MacBook Pro.]






              share|improve this answer













              If on the mac, be aware also of *.localized files, which may become invisible even to 'ls -la', 'find' and their ilk on a FUSE filesystem. [ This discovered using a ConnectedData Transporter-created FUSE filesystem on a MacBook Pro.]







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Aug 25 '15 at 10:39









              DaveDave

              992 bronze badges




              992 bronze badges























                  -1














                  This can happen when you are seeding a file in a torrent client too. Just make sure you shut off the torrent client, or remove the seeding torrent.






                  share|improve this answer




























                    -1














                    This can happen when you are seeding a file in a torrent client too. Just make sure you shut off the torrent client, or remove the seeding torrent.






                    share|improve this answer


























                      -1












                      -1








                      -1







                      This can happen when you are seeding a file in a torrent client too. Just make sure you shut off the torrent client, or remove the seeding torrent.






                      share|improve this answer













                      This can happen when you are seeding a file in a torrent client too. Just make sure you shut off the torrent client, or remove the seeding torrent.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Mar 4 '16 at 5:15









                      Daniel ReidDaniel Reid

                      1




                      1























                          -1














                          A common possibility is that the directory is being hold by a running process. Run ps aux to check for anything suspicious. Also, try to restart the machine.






                          share|improve this answer




























                            -1














                            A common possibility is that the directory is being hold by a running process. Run ps aux to check for anything suspicious. Also, try to restart the machine.






                            share|improve this answer


























                              -1












                              -1








                              -1







                              A common possibility is that the directory is being hold by a running process. Run ps aux to check for anything suspicious. Also, try to restart the machine.






                              share|improve this answer













                              A common possibility is that the directory is being hold by a running process. Run ps aux to check for anything suspicious. Also, try to restart the machine.







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Mar 28 '17 at 2:44









                              SmallChessSmallChess

                              1241 silver badge8 bronze badges




                              1241 silver badge8 bronze badges























                                  -1














                                  I couldn't remove a directory on Windows 10 with Git Bash:



                                  $ rm -rf qt3d-editor
                                  rm: cannot remove 'qt3d-editor': Directory not empty


                                  The directory looks empty:



                                  $ ls -a qt3d-editor/
                                  ./ ../


                                  Finally, I deleted the directory by opening Windows file explorer and right click menu.






                                  share|improve this answer




























                                    -1














                                    I couldn't remove a directory on Windows 10 with Git Bash:



                                    $ rm -rf qt3d-editor
                                    rm: cannot remove 'qt3d-editor': Directory not empty


                                    The directory looks empty:



                                    $ ls -a qt3d-editor/
                                    ./ ../


                                    Finally, I deleted the directory by opening Windows file explorer and right click menu.






                                    share|improve this answer


























                                      -1












                                      -1








                                      -1







                                      I couldn't remove a directory on Windows 10 with Git Bash:



                                      $ rm -rf qt3d-editor
                                      rm: cannot remove 'qt3d-editor': Directory not empty


                                      The directory looks empty:



                                      $ ls -a qt3d-editor/
                                      ./ ../


                                      Finally, I deleted the directory by opening Windows file explorer and right click menu.






                                      share|improve this answer













                                      I couldn't remove a directory on Windows 10 with Git Bash:



                                      $ rm -rf qt3d-editor
                                      rm: cannot remove 'qt3d-editor': Directory not empty


                                      The directory looks empty:



                                      $ ls -a qt3d-editor/
                                      ./ ../


                                      Finally, I deleted the directory by opening Windows file explorer and right click menu.







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered 42 mins ago









                                      user3405291user3405291

                                      7486 silver badges24 bronze badges




                                      7486 silver badges24 bronze badges

















                                          protected by dr01 22 mins ago



                                          Thank you for your interest in this question.
                                          Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                                          Would you like to answer one of these unanswered questions instead?



                                          Popular posts from this blog

                                          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                                          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                                          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...