cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Unable to delete a file on ftp server

From: Jeremiah Foster <jeremiah_at_easywebsite.se>
Date: Fri, 03 Feb 2006 10:12:43 +0100

On Thu, 2006-02-02 at 10:24 -0800, Dan Fandrich wrote:
> On Thu, Feb 02, 2006 at 05:36:11PM +0100, Jeremiah Foster wrote:

>
> > $ curl -v -u user:password ftp://janus.cnetdata.com -X del
> > ack/dataout.txt
> ...
> > > del
> > < 500 'DEL': command not understood
> > * RETR response: 500
>
> 'DEL' isn't understood because that's not the command you want; the command
> is 'DELE', and want to send it using -Q, not -X. You also need to enclose
> the whole -Q argument in double quotes on the command line or else curl
> thinks you're trying to transfer another file.

Thanks Dan! That did the trick. I did this;

-Q "dele removethis.txt"

and it worked like a charm.

jeremiah
Received on 2006-02-03