Sentence:  These were unfortunate selections and Mr. Quincy, who had the consular appointments in charge, so made an almost <WSD>clean sweep</WSD> in that branch of the service, removing Republicans and putting Democrats in with “unprecedented vivacity.” 
Meaning of the word marked with <WSD> tags:  A thorough change of policies, personnel or things, removing or replacing all or almost all of what was there previously.