Page 1 of 1

How do I delete a file from FTP?

PostPosted: Sat Oct 09, 2010 1:06 pm
by Ariston (BR)
Hi.

I can already send and receive files. Thanks for those who helped me. Now I need to know how to delete a file from FTP after having downloaded it. Can anyone help me?

Re: How do I delete a file from FTP?

PostPosted: Sun Oct 10, 2010 12:39 pm
by Richard Chidiak
Hello

This is a sample

oInternet := TInternet():New()
oFTP := TFTP():New( DSITE, oInternet, DUSER, DPASS )

oFTP:DeleteFile(DFIC) // deletes a remote FTP file you must inform the complete address ex /xxx/yyy/myfile.dbf

OFTP:END()
oInternet:End()

Hth

Richard

Re: How do I delete a file from FTP?

PostPosted: Sun Oct 10, 2010 2:31 pm
by Ariston (BR)
Thank you, friend. I am gonna test it now.

Re: How do I delete a file from FTP?

PostPosted: Sun Dec 25, 2011 6:50 pm
by roberio
using the above function .... the following error occurred:

Image

help!