There is a concept of Santhara(Sallekhanā or Sanyasana-marana) in Jain community.
It is the last vow prescribed by the Jain ethical code of conduct.The vow of sallekhanā is observed by the Jain ascetics and lay votaries at the end of their life by gradually reducing the intake of food and liquids.
According to Jain text, Puruṣārthasiddhyupāya:
When death is imminent, the vow of sallekhanā is observed by progressively slenderizing the body and the passions. Since the person observing sallekhanā is devoid of all passions like attachment, it is not suicide.
The initial though that came to my mind of equivalent of Santhara practised in Hinduism was the concept of Samādhi, but looking at the description of it on Wiki, I am now thinking that there exists few differences.
As per Wiki, Samādhi
refers to a state of meditative consciousness. It is a meditative absorption or trance, attained by the practice of dhyāna.
Is there any equivalent of Santhara practised in Hinduism?