A student at the University of Hartford in Connecticut was charged with criminal mischief and expelled from school after boasting about having contaminated her roommate’s toothbrush, face lotion and other belongings in an effort to drive her from the room.

The student, Brianna Brochu, 18, was in court on Wednesday for charges that originated with an Instagram post in which she said that she had finally accomplished what had apparently been a long-held goal: ridding herself of her dorm roommate, Chennel Rowe, whom she referred to as “Jamaican Barbie.”

“After one and a half months spitting in her coconut oil, putting moldy clam dip in her lotions, rubbing used tampons on her backpack, putting her toothbrush places where the sun doesn’t shine, and so much more, I can finally say goodbye to Jamaican Barbie,” said the post, which has since been deleted. Ms. Brochu is white; Ms. Rowe is black.

Lt. Michael Perruccio of the West Hartford Police Department said that the police began investigating the report on Oct. 18 and that Ms. Brochu turned herself in on Saturday.