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
Snow and heavy rain may hamper Monday morning rush hour
Often very windy, especially as we head into Sunday, with rain or showers. Met Office 'Be Aware' warnings have been issued
The family of a Cumbrian who suffered a botched blood transfusion are furious there was no reference to compensation in the Spending Review.