title: Curl download and delete file ftp
body: <p>I need to download a file from a ftp server and delete it after is transferred <strong>(on remote server)</strong>
  It's possibly in a single command line?</p>
  
  <pre><code>curl ftp://host/testfile.txt -X 'GET testfile.txt' --user user:password -o local.txt
  curl ftp://host/testfile.txt -X 'DELE testfile.txt' --user user:password
  </code></pre>
  
  <p>Thanks</p>