?
Solved

Delete all files from an ftp folder

Posted on 2013-11-27
3
Medium Priority
?
463 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 2000 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

800 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