Remove duplicated before deleting dirs recursive.