Thank you so much for your answer, but what exactly do you mean by something else would have to be done to remove the lien?
The HoA likely has a lien on the property for the arrearage. The bankruptcy discharge only relieves of you personal liability for the debt, meaning the HoA couldn't garnish your wages, attach your bank account, etc., to collect. But so long as the lien remains on the property, the HoA will be able to get its money from the property. Something more than just the discharge is needed to strip away the lien from the property. If there is value in the property to which the lien attaches, you won't get the lien removed. You should discuss this with your bankruptcy lawyer.