There is not a one-size-fits-all answer to this question, as the best way to Unflag photos in Lightroom will vary depending on the specific version of Lightroom you are using and the specific photo files involved.