I created an automator service to select a file and upload it to an ftp server. I have to do this regularly. But what I really need to do is delete the files in that remote directory before the file uploads.
I've not tried curl on the command line for this particular purpose, but it looks like you *can* use it to delete files over ftp. Check out instructions on this page: