If it appears to the court that no person is entitled to a lien, or that every lien has been discharged by payment thereof, judgment shall be entered to the effect that the lien is dissolved, and a certificate to that effect shall be sent forthwith by the clerk to the register of deeds. Such certificate shall be filed and recorded in the manner provided in sections eight and nine.
Mass. Gen. Laws ch. 254, § 15