Digital Mind Suicide

Greg Egan’s 1994 novel Permutation City depicts digital minds having a right to suicide; if they push a particular internal button, they end.