Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Delete directory recursively throwing an error

Delete directory recursively throwing an error

Scheduled Pinned Locked Moved ASP.NET
helpquestionsysadmin
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nicejith
    wrote on last edited by
    #1

    Hi all, I'm using "Directory.delete(folderpath,true)" for deleting a folder containing sub folders and files from server. When i'm trying to delete it, it throws an error saying 'Directory not empty'. All the files and subfolders are getting deleted, but the directory is still there. More over, it removes all the session variables also. How can i fix this issue? Please help.

    N 1 Reply Last reply
    0
    • N Nicejith

      Hi all, I'm using "Directory.delete(folderpath,true)" for deleting a folder containing sub folders and files from server. When i'm trying to delete it, it throws an error saying 'Directory not empty'. All the files and subfolders are getting deleted, but the directory is still there. More over, it removes all the session variables also. How can i fix this issue? Please help.

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Nicejith wrote:

      it removes all the session variables also.

      Is it deleting ASP.NET folders like app_code, app_browser ,bin. Then application will restart and that will end all sessions.


      My Website | Ask smart questions

      N 1 Reply Last reply
      0
      • N N a v a n e e t h

        Nicejith wrote:

        it removes all the session variables also.

        Is it deleting ASP.NET folders like app_code, app_browser ,bin. Then application will restart and that will end all sessions.


        My Website | Ask smart questions

        N Offline
        N Offline
        Nicejith
        wrote on last edited by
        #3

        No.. it deletes a user folder only.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups