The hormonal pathway controlling cell death during metamorphosis in a hemimetabolous insect.