Removing unnecessary directories.