Almost every transaction is done on a cash-free, debt-free basis. This means that any cash on the balance sheet is yours to keep.  At the same time, all of the debt is your responsibility to pay off at closing, with proceeds, or prior to the transaction.