A police officer was asked to leave a court because he was wearing his full uniform, including body armour, baton and handcuffs.
The incident took place at Mold Crown Court on Monday during a sentencing.
Judge John Rogers QC saw the officer at the side of the room and said: "You can't come to court dressed like that. Will you please leave."
A North Wales Police spokesman said a force policy was in place.
"Operational uniform should be worn when on operational duties, including attendance at court," he added. "This is necessary in order to ensure that officers are fully equipped to deal with any situation which may arise while they are on duty, whether in or outside the court."
Richard Eccles, North Wales Police Federation Secretary, said the incident was "unfortunate."