Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Urgent problem - Recursive Deletion

Status
Not open for further replies.

frozenfusion

Programmer
Mar 24, 2002
1
US
I need a script, I can't write it because I can't beta test it anywhere and if I screw up, I could crash a server.

I may soon be shut out of my webhost and I've got a lot of code up there.. all written by me and if I get shut out, I need to be able to delete the code.

Does anyone have a script they'd be willing to loan me that will delete all files in a directory and subdirectories of it, except, of course the script that does the deleting, its fine to leave it up there.

Thanks very much for your time,
Tony Hicks
 
You may be able to upload a cf template that uses cfdirectory and cffile to delete the files but these tags are usually disabled by hosts. You may be able to upload an executable that does this search on google. However you may not have execute permmisions.
 
THe other thing to remember is that even if you delete it, if they really want it back they can get it back.

I'm assuming that your webhost does backups, so all they would have to do is restore from yesterday's backups and your files are back.

Why would you be shut out of your webhost anyway?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top