Seventeen officers from Lothian and the Borders Police are being moved to other departments while misconduct inquiries continue.
The officers are being investigated after emails of a racist and sexual nature were allegedly found on an internal computer system.
Four civilian staff will also be moved to other departments, and a 51-year-old has already been suspended.
More top news
Outbreaks of sleet or snow, breezy and turning very cold, the wind chill making temperatures feel like sub-zero. Warnings for snow and ice
Cumbria Police are looking to recruit more than 100 new police constables, just months after the force had been threatened by budget cuts.
The River Kent is being dredged again after more storms at the end of January washed up to 100 tonnes of gravel back downstream