Jainism
There are many types of fasting in Jainism, however, the main goal of any type of fasting is to achieve complete non-violence during that period. One of the various types of fasting is called Chauvihar Upwas, in which no food or water is consumed until sunrise the next day. Another is called Tivihar Upwas, in which only boiled water is allowed. Fasting is usually done during Paryushana but can be done during other times also.
Self-starvation by fasting is known as Sallekhana and is supposed to help shed bad karma according to Jain philosophy. Another form of fasting is Santhara - the ritual of voluntary death by fasting. Supporters of the practice believe that Santhara cannot be considered as suicide, as it is something one does with full knowledge and knows its implication. Due to the prolonged nature of Santhara, the individual is given ample time to reflect on his or her life. The vow of Santhara is taken when one feels that one’s life has served its purpose.