love_dude1984 0 Junior Poster in Training

hi...

im writing a code in which i need to upload some files like pdf's images etc on ftp....my code saves all the files on ftp properly...but ther is one form which allows user to delete the same contents from ftp..n d code written to delete the contents is as follows

path = "Folder/" + txtcode.Text.Trim() + ".pdf";

                file = new FileInfo(path);
                    if (file.Exists)
                    {
                        File.Delete(path);
...etc etc...

this code works fine on local machine....but doesnt work ftp...i save the path in database as Folder/abc.pdf...

is it a right way to reach to the file or do i need some other code to delete the files on ftp?

Please Help me..its really very urgent

Thanks..