In any action involving an abused or neglected child, the records and files of the court may be sealed by court order issued on the court's own motion or on the petition of any party to the action after the termination or completion of the action in all respects and after the expiration of the time for all appeals. If parental rights were terminated, the records and files of the court may not be sealed until adoption proceedings concerning the child have been completed or the court specifically orders the records and files sealed on the court's finding, based on information received by the court from the Department of Social Services, that adoption of the child is improbable. After the court records and files relating to the action concerning the abused or neglected child are sealed, inspection of the records and files may thereafter be permitted by the court only on petition by the guardian, guardian ad litem, or attorney for the child who is the subject of the action, by respondent parents whose parental rights have not been terminated or by the Department of Social Services. Before allowing inspection of sealed records and files, the court shall find that the inspection is in keeping with the best interests of the child.
SDCL 26-7A-113