Dileep:
In Hindu traditions, there has been a lot of talk on the concept of "MahaSamadhi" and I have heard of various personalities leaving their body("Dying" as per me) as per their will. I have been very curious on this subject. In general, the illusion of life has designed itself in such a way that death is either painful or with suffering. As per the understanding I have, "MahaSamadhi" is a way of meditating and controlling body vitals in such a way that the body dies without any suffering.
I would be very happy if anyone has any more information on this or knows steps or path that can be practiced that can result in "MahaSamadhi". So basically, it would be really helpful if I gain any information on this and can progress on this.
Please note, I do not have any suicidal thoughts or I am not in any sort of depression. I have made small progress in mediatation and I am leading a contented life with as much equanimity as possible. The current post is just a child of my curiosity and it would be good if I can decide and die at my chosen time in future.
Remarkable death stories of advanced meditation practitioners are common, the main ones that come to mind are rainbow body and tukdam in the Tibetan tradition, both of which seem to be reliably witnessed. The attainment of these states is often framed in the context of a specific practice, as you noted, but I think this is misleading. The reality most likely is that these are simply occurrences that are only available to individuals with very high levels of meditative realization, and even then are likely not entirely controllable.
I very much doubt that any master would chose to die at a certain time, more likely they would simply have a greatly heightened awareness for when death is approaching, and for any subtle stages of transition that might occur. If you desire such an experience, I would advise you to aim high in meditation. However, striving for advanced attainment might be better approached with an attitude of reducing suffering in this life, versus gaining control over ending it.