How to delete files via FTP if there are more than 100,000 files in the directory?

I went to upload a new file to my web server in order to receive a message in response, saying that my disk quota is full ... I did not use my allocated space, but rather allocated a QUANTITY FILE. My host closes my total number of files about 260,000.

Checking through folders I believe that I found the culprit ...

I have a small DVD database application (Video dB By split Brain) that I have installed and hidden on my website for personal use. Apparently, it caches data from IMDB and over the years secretly accumulates what is probably close to IMDB MIRROR at the moment. I do not know for sure, but I had a second (inactive) copy of the program on the host that I created several years ago, which I used to test when I changed parts of it. In the cache folder in this inactive copy were 40,000 files of 2.3 GB in size. I was able to delete this folder via FTP, but it took more than an hour. Fortunately, he also gave me a much needed rest room.

... But now, as you can imagine, the cache folder for the active copy of this web application probably has closer to 150,000 files with a total volume of about 7 GB.

This is where my problem arises ... I use Flash FXP for my FTP client, and whenever I try to delete the cache folder, or even just browse the contents that it will sit on, and try to download the file list for a good 5 minutes, and then lose the connection to the server ...

My host has a web file browser, and it crashes when I try to do this ... like the free online FTP clients like net2ftp.com. I do not have SSH capability on this server, so I cannot log in directly to delete.

Does anyone know how I can delete these files? Is there any other FTP program that I can download that would be of better success ... or maybe a little script that I could run that could take care of this?

Any help would be greatly appreciated.

+3
4

- , ?

?

+5

, FTP . . script FTP- , , . magic ( perl - ) FTP script, delete . , .

, .

, - .

, , , .

+3

, , , Firefox 10 000 FTP. , 150 000 . Firefox , , .

ncftp. , . . Windows, MacOS, Linux .

, . , Putty ssh rm -r?

+1

ssh, rm .

If access to the command line is not available, you can try using some powerful FTP client, for example CrossFTP . It works on win, mac and linux. When you choose to delete a huge number of files on your server, it can queue up for delete operations, so you do not need to reload the folder again. When rebooting CrossFTP, the queue can also be restored and continued.

+1
source

All Articles