Removing files which are duplicated or no longer necessary