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
77-year-old Derrick Cooper was sentenced at Carlisle Crown Court today for abusing two boys at Underley Hall in Kirkby Lonsdale.
Hundreds of runners will gather at Windermere tonight to run 3.7miles in memory of Matt Campbell.
Arriva Rail North, Greater Anglia and South Western Railway are all affected.