Solved

Delete all files from an ftp folder

Posted on 2013-11-27
3
457 Views
Last Modified: 2013-11-28
I need to delete all files from an ftp folder.


Can you give me a link to an example?

This is what I have at this point:

//Create a FTP Request Object and Specfiy a Complete Path
                strFTPFilePath = "ftp://" + "StockPickerMax.com" + "/" + "Data/Changes" + "/" + fileName;

                FtpWebRequest reqObj = (FtpWebRequest)FtpWebRequest.Create(new Uri(strFTPFilePath));

                reqObj.Method = WebRequestMethods.Ftp.DeleteFile;
0
Comment
Question by:Dovberman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
johny_bravo1 earned 500 total points
ID: 39682623
See if this helps,

http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx

check DeleteFileOnServer
0
 

Author Comment

by:Dovberman
ID: 39683195
That works.

Thank you.
0
 

Author Closing Comment

by:Dovberman
ID: 39683197
That works.

Thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
disable data migrations in visual studio 2017 4 46
Developing a front end to SPLUNK 1 57
asp.net web app 3 20
CSS for Popup in ASP.NET 4 15
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question