Whenever default has occurred in the performance of any of the terms and conditions of an executory contract for the sale or exchange of real property, an action may be brought in the circuit court for the county in which such property, or some part thereof, is situated for a foreclosure of all rights under such contract asserted adversely to the plaintiff in such action.
SDCL 21-50-1