Hi I want to delete a folder on my ftp
I tried this:
WebRequest request = WebRequest.Create(strPath);
request.Method = WebRequestMethods.Ftp.RemoveDirectory;
request.Credentials = new NetworkCredential(strUusername,strUpassword);
using (var resp = (FtpWebResponse)request.GetResponse())
{
Console.WriteLine(resp.StatusCode);
}
Webexception was unhandled. (550)file not available
strPath = ftp://192....../Media
but in Media are other folders like music, video ,....
Why doesn't work?