Cant quite comprehend you.
If you Received the Loan from Friend (It was your Liability), recognizing it to 0 will mean you have paid it.
On the other hand if you gave the Friend the Loan , then it wass your asset.
Please elaborate the question for appt guidence