Law enforcement agencies condemned police violence Friday after President Trump advised New York officers "don't be too nice" during arrests.

The International Association of Chiefs of Police issued a statement stressing that officers are extensively trained to ensure use of force is applied carefully.

"Law enforcement officers are trained to treat all individuals, whether they are a complainant, suspect, or defendant, with dignity and respect," the organization said. "This is the bedrock principle behind the concepts of procedural justice and policy legitimacy."

Trump tells law enforcement: 'Don't be too nice' with suspects

The assurance came after Trump's remarks to a group of officers on Long Island, N.Y.

“Like when you guys put somebody in the car and you’re protecting their head, you know, the way you put their hand over, like, don’t hit their head and they’ve just killed somebody, don’t hit their head, I said, ‘You can take the hand away, OK?’" the president said.

The statement drew laughs and applause from the crowd. Hours later, the local Suffolk County Police Department (SCPD) issued two tweets clarifying that it doesn't allow violence.

"The SCPD has strict rules & procedures relating to the handling of prisoners. Violations of those rules are treated extremely seriously," the department said. "As a department, we do not and will not tolerate roughing up of prisoners."

The police department in Gainesville, Fla., also felt compelled to chide the president for the remarks.

"The @POTUS made remarks today that endorsed and condoned police brutality," the department tweeted. "GPD rejects these remarks and continues to serve with respect."

GPD rejects these remarks and continues to serve with respect.

— Gainesville Police (@GainesvillePD) July 29, 2017

"Those that applauded and cheered should be ashamed," added department spokesman Ben Tobias.

I do not agree with or condone @POTUS remarks today on police brutality.

Those that applauded and cheered should be ashamed.

— Ben Tobias (@GPDBenTobias) July 28, 2017