I\'m actually trying to use CURL
to make some operations on a ftp server in C++ with Visual Studio. I\'ve no trouble to do some uploads or downloads with comman
I accomplished this task by first logging into my FTP server then typing "?" at the command line to get a list of commands recognized by my FTP server. The command recognized by my server was "delete".
So, -Q"delete $fileToRemove" $serverURL
I was also able to get it to work by using -X"DELE $fileToRemove" $serverURL. However, I kept getting rc=19 (because I think the "-X" option mostly applies to HTTP|HTTPS?) from curl when I used this argument even though the file was successfully deleted.
Not sure if other FTP servers recognize different commands but this is what worked for me.