How can I download a file from a FTP server, then automatically delete it from the server once the download completes?
with curl:
curl ftp://example.com/ -X 'DELE myfile.zip' --user username:password
with lftp:
lftp ftp://user:password@host -e "get -E remotefile; bye"