Minn. Stat. § 484.014
Subd. 1. Definitions.
For the purpose of this section, the following terms have the meanings given:
Subd. 2. Discretionary expungement.
The court may order expungement of an eviction case court file only upon motion of a defendant and decision by the court, if the court finds that the plaintiff's case is sufficiently without basis in fact or law, which may include lack of jurisdiction over the case, that expungement is clearly in the interests of justice and those interests are not outweighed by the public's interest in knowing about the record.
Subd. 3. Mandatory expungement.
The court shall order expungement of an eviction case commenced solely on the grounds provided in section 504B.285, subdivision 1, clause (1), if the court finds that the defendant occupied real property that was subject to contract for deed cancellation or mortgage foreclosure and: