Yes, loan settlement is legal in India.
Banks and NBFCs may offer settlement options to borrowers facing genuine financial hardship. However, borrowers should understand the impact on their credit report before accepting a settlement — the 'Settled' status can remain visible for several years.