It depends I on the nature of the lien. For instance HOA and condo debts are not extinguished by foreclose. The debt runs with the land.
Seek legal advice from a real estate attorney before trying this.
This communication is not intended to create an attorney/client relationship. It is always recommended you consult an attorney in person to discuss your case. The Law Offices of Stage & Associates practices state-wide and represents homeowners and community associations. Please visit our website at www.stagelaw.com.