Hello Francois, and welcome to the forum. To my recollection, there is no actual public API for this. In the past I have used the process that is executed when you press the 'reverse termination' button on the screen. Unfortunately I have no access to an application at the moment so I can't tell you the name, sorry.
Regards
Clive