During metamorphosis of the hawkmoth, Manduca sexta, some larval muscles degenerate while others are respecified for new functions. In larvae, accessory planta retractor muscles (APRMs) are present in abdominal segments 1 to 6 (A1 to A6). APRMs serve as proleg retractors in A3 to A6 and body wall muscles in A1 and A2. At pupation, all APRMs degenerate except those in A2 and A3, which are respecified to circulate hemolymph in pupae. The motoneurons that innervate APRMs, the APRs, likewise undergo segment-specific programmed cell death (PCD), as a direct, cell-autonomous response to the prepupal peak of ecdysteroids. The segment-specific patterns of APR and APRM death differ. The present study tested the hypothesis that APRM death is a direct, cell-autonomous response to the prepupal peak of ecdysteroids. Prevention of the prepupal peak prevented APRM degeneration, and replacement of the peak by infusion of 20-hydroxyecdysone restored the correct segment-specific pattern of APRM degeneration. Surgical denervation of APRMs did not perturb their segment-specific degeneration at pupation, indicating that signals from APRs are not required for the muscles' segment-specific responses to ecdysteroids. The possibility that instructive signals originate from APRMs' epidermal attachment points was tested by treating the epidermis with a juvenile hormone analog to prevent pupal development. This manipulation likewise did not alter APRM fate. We conclude that both the muscles and motoneurons in this motor system respond directly and cell-autonomously to prepupal ecdysteroids to produce a segment-specific pattern of PCD that is matched to the functional requirements of the pupal body.