The undertaking shall remain in force so long as the court deems necessary, but whenever it shall appear to the court, by affidavit or otherwise, that the defendant is then, and for a reasonable time prior thereto has been in good faith, furnishing his or her spouse or child with a necessary and proper home, food, care, and clothing, the court may cancel the undertaking.
SDCL 25-7-25