DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Cannot Delete Directory in Assets

Sort:
You are not authorized to post a reply.





New Around Here





    Hello,

    I am fairly new to DNN and have Googled this issue extensively, but had no luck finding any answers. I am having an issue where I get "The directory is not empty" error when trying to delete an empty directory through the "Assets" panel. I have read that this can happen if there are files that are not displayed because of their extension, but I have checked in the database and nothing is associated with these folders. I would prefer not to use SQL to delete these as I am not sure of what all is done behind the scenes with DNN when a directory is deleted through the UI. I have checked the admin logs and found nothing helpful there other than the general exception that was thrown and I also do not believe this to be a permissions issue since I am a host user. Is there anything I can do to delete these folders or at least find out what is supposedly in them?

    Any help would be greatly appreciated.

    Thanks,

    J.






    Veteran Member





      Try re-synchronizing the file manager.

      If you have access to the server, you can check the file directories directly to make sure that there is nothing there.

      I think that you can also just delete the file directories, which will require another re-sync.
      Joe Craig
      DNN MVP
      Patapsco Research Group





      Growing Member





        Just a thought.

        The hidden file thumbs.db is a database file containing a small JPEG representing each of the thumbnails in a folder. They are created automatically in the same directory as the thumbnails being viewed. Because they are hidden it makes the task of deleting these folders very difficult. You must first delete that hidden file but that is not always possible because it is usually in a "write" state that will not allow it to be deleted.





        New Around Here





          Sorry for the late reply. Been a hectic bit over a month. I finally got back to this task and got the folders deleted. Thank you Joe and muddeatr! Your responses fixed the issue. Joe, I deleted and resynced as you recommended. Muddeatr, while the folders were deleting I was prompted to remove files (though it did not list the name here) and while they were deleting I saw that they were indeed the thumbs.db files. Kind of sneaky because I am used to these showing up when you set the file explorer option to show hidden file types. At least it used to in older versions of Windows. It seems they no longer show up even with this setting on.

          A big thanks again to you both for your help!





          Veteran Member





            Yeah, it can be a bit messy. DNN only displays "legal" files in the File Manager / Assets page. Those are files with extensions allowed in the Host Settings.

            But, I'm quite happy that you managed to get this done.
            Joe Craig
            DNN MVP
            Patapsco Research Group





            Veteran Member





              There is a way to avoid the creation of thumbs.db (which makes sense on a server ;-)) - see this article.

              Happy DNNing!
              Michael

              Michael Tobisch
              DNN★MVP

              dnnWerk Austria
              DNN Connect
              You are not authorized to post a reply.

              These Forums are dedicated to the discussion of DNN Platform.

              For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

              1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
              2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
              3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
              4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
              5. No Flaming or Trolling.
              6. No Profanity, Racism, or Prejudice.
              7. Site Moderators have the final word on approving / removing a thread or post or comment.
              8. English language posting only, please.

              Would you like to help us?

              Awesome! Simply post in the forums using the link below and we'll get you started.

              Get Involved