2 edited tags
| link
1
source | link

delete multiple remote files with the FTP command

Right now we have a script that uses the FTP mget command to download all the files in a specific location. After after verifying the files have successfully downloaded we run a ftp delete command to delete each file that was downloaded. We noticed that each ftp delete is creating a new connection and I was wondering if it is possible to delete each file in one connection? I have a .txt file with all the file names that need to be deleted, but the file type varies a great deal so it would be nice to be able to target each file individually.