The Gates Chili Central School District says the high school was evacuated due to a possible bomb threat.
Gates Police have identified a 17-year-old student as being the one responsible for writing the threat on a wall in a boys' bathroom.
"At a later date, he will be referred to Family Court," according to an email from the Gates PD.
Students who drive to school were told to go home. Students who ride the bus were transported to another location and boarded their buses home from there.
Brockport High School was also evacuated on Friday due to a possible bomb threat but police determined there was no actual threat and everyone was allowed to return to the building.