Hi,
As far as I know the "FTP download from list" feature cannot handle the DELE command, so please let me know a solution to delete a huge list of files (some 30000, so manual deleting does not work) from an FTP directory?
Peter
How to delete list of files from FTP folder?
Moderators: Hacker, petermad, Stefan2, white
Re: How to delete list of files from FTP folder?
Can you give more information?Cukorka wrote:As far as I know the "FTP download from list" feature cannot handle the DELE command, so please let me know a solution to delete a huge list of files (some 30000, so manual deleting does not work) from an FTP directory?
You have a list of files to delete. What exactly does this list look like?
Are all the files in the same folder?
What is the total number of files in the FTP folder?
Is this something you want to do once or repeatedly?
Thanks for dealing with it.
To reply to your questions:
> You have a list of files to delete. What exactly does this list look like?
These are book jacket images (filenames: ISBN+.jpg).
> Are all the files in the same folder?
Yes.
> What is the total number of files in the FTP folder?
Around 160000.
> Is this something you want to do once or repeatedly?
Not too frequently, but from time to time we'd like to delete unnecessary cover images (of books went out of print). But why are you asking it? (if one solution can be done once, it should be done the next time as well, right?)
Peter
To reply to your questions:
> You have a list of files to delete. What exactly does this list look like?
These are book jacket images (filenames: ISBN+.jpg).
> Are all the files in the same folder?
Yes.
> What is the total number of files in the FTP folder?
Around 160000.
> Is this something you want to do once or repeatedly?
Not too frequently, but from time to time we'd like to delete unnecessary cover images (of books went out of print). But why are you asking it? (if one solution can be done once, it should be done the next time as well, right?)
Peter
Simply go to the FTP folder in Total Commander, then use menu Mark/Load Selection From File to mark all files to be deleted. Then delete the files...Cukorka wrote:To reply to your questions:
> You have a list of files to delete. What exactly does this list look like?
These are book jacket images (filenames: ISBN+.jpg).
> Are all the files in the same folder?
Yes.
Thanks much, I didn't know about this feature. The easiest way, indeed, thanks!
(
An additional important step should be to sort the FTP directory's content according to the file list in the selection file before applying the selection, otherwise it takes forever to find the files, and FTP timeouts before it can select the appropriate files.)
(
