This should be a very simple project for anyone who knows linux/apache. I have a large number of sites each with a large number of directories.
I need a server script that will delete all files, directories and subdirectories BUT leave certain specified directories and files untouched.
For example, I might have a public_html directory, and I want to delete all files and folders except .htacess, mydir1 and mydir2.
As well as providing the script you must provide installation and operating instructions.