Script to remove EOS directories