When entitled to do so, any party to an action, or his attorney of record, in any circuit or magistrate court may within the time prescribed by this chapter, file an affidavit as provided by this chapter seeking to disqualify the judge or magistrate who is to preside or is presiding in that action and when properly filed that named judge or magistrate shall proceed no further in said action and shall thereupon be disqualified as to any further acts with reference thereto unless otherwise ordered to proceed by the presiding judge of the circuit involved. However, any order or decree previously signed by such judge or magistrate shall remain in full force and effect, if filed, or becomes effective upon filing, unless thereafter vacated or reversed.
SDCL 15-12-22