Pentagon chief Mark Esper on Friday effectively banned the display of the Confederate flag at all US military facilities, where the banner -- seen by many as racist -- is frequently displayed in barracks and common areas.

In a message to all US military officials, the Defense Department posted a list of flags authorized to be flown at bases and aboard war ships, in offices and conference halls, and in any spaces operated by the military.

Left off that list was the Confederate battle flag, a red banner with two diagonal blue stripes and 13 white stars symbolizing the southern slave-holding states that seceded from the union or supported the effort during the 1861-1865 American Civil War.

"The flags we fly must accord with the military imperatives of good order and discipline, treating all our people with dignity and respect, and rejecting divisive symbols," Esper wrote in a two-page memorandum.

The carefully worded statement did not specifically mention the Confederate flag, or the racial tensions that have simmered since the killing of unarmed African American George Floyd in police custody in late May.

It appeared crafted in a way to avoid open conflict with US President Donald Trump, who has repeatedly waded into the debate over the Confederate flag to argue that people who fly it are exercising their freedom of speech.

For years, some soldiers have been fond of displaying Confederate flags in their barracks, claiming the freedom of expression enshrined in the US Constitution.

White southerners often fly the flag as a symbol of their southern heritage and pride, but for most African Americans, it is a potent symbol of slavery, racism and white supremacy.

Members of the Ku Klux Klan, a notorious white supremacist hate group, often flew the flag.

By effectively banning the flag, Esper is differentiating himself from Trump, who addressed the Confederate issue in a CBS interview this week.

"I know people that like the Confederate flag and they're not thinking about slavery," Trump told the network. "With me, it's freedom of speech, very simple."

Esper and General Mark Milley, chairman of the Joint Chiefs of Staff, have also spoken out in favor of renaming US military bases currently named for Confederate generals, an idea the president opposes.