Delete a folder from ftp?

Last post 07-04-2009 12:26 AM by nmreddy83. 1 replies.

Sort Posts:

  • Delete a folder from ftp?

    07-03-2009, 4:19 PM
    • Member
      3 point Member
    • cykill
    • Member since 10-08-2008, 10:55 PM
    • Posts 30

    Anyone know a way to delete a folder and all its contents on an ftp server?  I am able to create folders using the ftpwebrequest object but I don't see a delete function to it.  I'm trying not to run console commands from c#.net.  Thank you.


    Cykill,



  • Re: Delete a folder from ftp?

    07-04-2009, 12:26 AM
    • Participant
      1,768 point Participant
    • nmreddy83
    • Member since 01-21-2009, 6:00 PM
    • India
    • Posts 316

    there is no direct way to delete folder from FtpWebRequest.

    It does not support delting Folders.

    you can do it using alterntaive way.. follow the link

    http://www.dotnetfunda.com/articles/article125.aspx

    ***Hope this helps you***
    ***Please mark as answer if this helps you. ***

    thank you,
    -nm reddy
Page 1 of 1 (2 items)