This is working as expected and removing all instances of *_tmp_war directories in the process but still leaves all the '.wlnotdelete' directories. I know its because of the '.' character at the start of the directory name but I cant find any way of making it work. It must be a regular expression matching pattern but I cant find an example of how to do it....anyone got any bright ideas or pointers to any docs that might tell me.