Remove extra directories.