using System;
using System.Net;
using System.Threading;
using System.IO;
using System.Text;
class ThreadTest
{
static void Main()
{
var req = (FtpWebRequest)WebRequest.Create("ftp://ftp.yourFtp.com/deleteme.txt");
req.Proxy = null;
req.Credentials = new NetworkCredential("nutshell", "yourValue");
req.Method = WebRequestMethods.Ftp.DeleteFile;
req.GetResponse().Close(); // Perform the deletion
}
}