A 17-year-old boy from D.C. threatened to use an AK-47 to kill his ex-girlfriend and "shoot up" her Greenbelt school last week, the D.C. police said Thursday.

WASHINGTON — A 17-year-old boy from D.C. threatened to use an AK-47 to kill his ex-girlfriend and “shoot up” her Greenbelt, Maryland, school last week, D.C. police said Thursday.

The girl, a 17-year-old from Greenbelt, received threatening text messages after she told the boy that she didn’t want to date him anymore.

He had told his ex-girlfriend that he was going to go to the victim’s house and kill her entire family, according to court documents obtained by NBC Washington, and said he was going to bring his friends to watch.

The boy continued the threats, saying he would go to her school, Eleanor Roosevelt High School, and “shoot it up.” He said he would kill her and anyone inside the school. He also threatened to go to her mother’s place of work to “shoot up her work and kill her.”

The messages indicated the boy was planning to carry out these attacks last Friday. D.C. Police Chief Cathy Lanier said officers retrieved the weapons from the teenager’s home in Southeast before any harm could be done.

D.C. police recovered the weapon and 180 rounds of ammunition.

“These weapons are dangerous enough. But those weapons in the hands of the wrong person, the impact is incredible,” Lanier said. “If anybody thinks for one second that the actions of the Gun Recovery Unit there didn’t save countless lives, you are making a mistake.”

D.C. At-Large Councilmember Anita Bonds issued a statement saying guns need to be in the right people’s hands.

“Assault weapons should not only be removed from the streets but they should not be manufactured and made accessible to anyone other than our military. We don’t need them to kill animals or people. Automatic weapons have no place in society,” Bonds said in a statement emailed to WTOP.

The boy also posted a video on Instagram of the girl performing sexual acts, according to the court documents.

The Greenbelt Police Department plans to charge the boy with two counts of threats of mass violence and child pornography charges, the court documents said.