(BOSTONGLOBE) — The family of Phoebe Prince, the South Hadley teenager who took her life allegedly in response to a barrage of bullying, received $225,000 from the town and in exchange agreed not to sue the girl’s school district, according to a copy of the settlement disclosed yesterday.

The disclosure was made four days after a Hampshire Superior Court judge ruled in favor of a reporter who had filed a lawsuit demanding that the town release the record.

Town officials had fought the reporter’s initial requests, saying they violated a confidentiality agreement with Prince’s family, who had accused the school district of ignoring the teenager’s suffering.

Prince, a 15-year-old transfer student from Ireland, hanged herself in her home in January 2010. Her death led to a national outcry over bullying in schools.

Note: Read our discussion guidelines before commenting.