Thirteen Philadelphia police officers are to be fired for making racist or offensive Facebook posts.

The 13 are among 72 officers in the city who had been placed on administrative duty after an online database called the Plain View Project shared more than 5,000 Facebook posts and comments on June 1 by current and former law enforcement officers in Philadelphia and seven other jurisdictions around the country.

Some of the posts were homophobic. Others advocated violence or were deemed racist.

In one post from 2014, a Philadelphia officer wrote that a suspect “should be taken out back and put down like the rabid animal he is,” according to the Plain View database. Another officer shared a photo in November 2015 that said Islam was a “cult” that glorified “death.”

In a recent post from February, an officer with the city's police department commented on a news article about an alleged murderer, writing, “hang him.”

Plain View Project said the Facebook posts and comments "could undermine public trust and confidence in our police."

The Philadelphia Police Department conducted an internal investigation with a law firm to determine if some of the posts by its officers were constitutionally protected speech.

The department announced disciplinary actions Thursday that depended on how egregious the Facebook posts by those individual officers were.

Some of the 72 officers who had been placed on administrative duty will be suspended for five days, police Commissioner Richard Ross Jr. said at a news conference Thursday.

Seventeen others will face more severe disciplinary action, including the 13 who will be suspended with the intent to dismiss, according to Ross. The remaining four will receive 30-day suspensions, he said.

"I continue to be very angered and disappointed by these posts," Ross said. The 13 officers to be fired made posts that "advocated violence."

Philadelphia Fraternal Order of Police Lodge #5 President John McNesby said the organization was "disappointed" the officers will be fired without due-process and they were meeting with them "to prepare an appropriate response."

"FOP Lodge #5 and our members condemn racist and hateful speech in any form," he said in a statement. "The overwhelming majority of our members serve this city with integrity and professionalism."

The highest-ranking official to be fired is a sergeant, Ross told reporters. He declined to identify any of the 13 by name.

Philadelphia Mayor Jim Kenney said many of the posts were "deeply disturbing."

"We have a duty to represent ourselves and our city," he said at the news conference. "We will not allow this incident to break down the progress we have made and we pledge to do better."

Ross said every member of the police department will have to watch a training video about social media and policies on off-duty behavior.

The Plain View Project scoured 3,500 public accounts from officers in Dallas; St. Louis; Phoenix; York, Pennsylvania; Twin Falls, Idaho; Denison, Texas; and Lake County, Florida.

In June, St. Louis Circuit Attorney Kimberly Gardner added 22 names to her "exclusion list" of officers banned from bringing cases to her office after the Facebook posts were made public. In a letter sent to Public Safety Director Jimmie Edwards and St. Louis Police Chief John Hayden, Gardner said seven of those 22 were "permanently banned."