If your resale HDB flat has an outstanding loan, you can use the sales proceeds from your home sale to fully repay the loan. Inform HDB or the bank of your intention to sell and get a final settlement amount to avoid any complications.