Multiple file deletion

Chaos

New member
Joined
Apr 17, 2007
Messages
4
Anyone know of a way to delete multiple files? Here's my scenario.
A friend, using my credentials was using a webcam and trying to save the images via ftp. Well something went haywire and uploaded the same image to my public_html folder approximatley a zillion times. To be more specific, when I login to my file host, my public_html folder now has 5340 pages listing copies of some image. At this point I am not sure how I am going to delete that much data about 9 gigs. I cant even pull the files I want to save via FTP because the public_html folder is so big it just gags my ftp client?
Any advice ?
 
no shell access.. :( I have been manually deleting them..I'll be gray when I'm done.
 
Last edited:
So if you are not using ftp how are you deleting them?
 
I'm deleting the files manually through the file manager in Direct admin!
Is that considered shell access? Even still the files are in the public_html folder, and there are thousands of them so at this point I have been deleting them page by page. I have sent in a service ticket to see if they will simply wipe and reload the server. I originally purchased an account to store my map files. When I quit gaming I kept the account for file storage and such. I was hoping the was a simple fix such as "click here to reload everything" lol obviously my skills are limited. I dont know how th get everything back to square one.
 
Last edited:
Do the files have something in common?

For example filename0000 where the numbers change but the filename stays the same?

If so you can use a template like this:
Code:
rm -f filename*
But only if you have either shell access (you say you don't) or if you have cronjob access.

You can create a cronjob to do it, let it run once, and then remove it. Or you can wipe your entire public_html directory with this in a cronjob:
Code:
rm -Rf *
Note that you'll wipe everything if you do that. You'll have to recreate your cgi-bin directory if you need it.

Jeff
 
Back
Top