Removing duplicated or irrelevant files