In my view, there is no law in India which can compel the management to issue relieving letter. It is the discretion of the management. However, if you really require a relieving letter, then it is better to convince the HR than to take a legal step.
However, for outstanding dues such as unpaid salary, gratuity etc. there are plenty of scope to take legal action against the company.