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
A 34-year-old man has been jailed for 16 months, for possessing the most serious class of child porn - with some victims aged two-years-old.
A family from Dumfries say their lives have been turned upside down due to a number of failings made by staff in Ward 7 at DGRI.
Sunshine and showers on Saturday, occasionally heavy with thunder. Better day Sunday