If the repayment is automatic every month, the 12 month provident fund needs to be kept in the provident fund account.
Annual automatic repayment, you can withdraw all the balance.
The balance withdrawal must be completed within 12 months after the loan comes down.
If it is not withdrawn, it can be deducted from the loan principal when it is repaid automatically every year.