iterate on directories to remove