clean up of the working directory before deletion