Targeted and specific induction of cell death in individual or groups of cells holds the potential for new insights into the response of tissues or organisms to different forms of death. Here we report the development of optogenetically-controlled cell death effectors (optoCDEs), a novel class of optogenetic tools that enables light-mediated induction of three types of programmed cell death (PCD), apoptosis, pyroptosis and necroptosis, using Arabidopsis thaliana photosensitive protein Cryptochrome2. OptoCDEs enable rapid and highly specific induction of PCD in human, mouse and zebrafish cells and are suitable for a wide range of applications, such as sub-lethal cell death induction or precise elimination of single cells or cell populations in vitro and in vivo. As the proof-of-concept, we utilize optoCDEs to assess the differences in the neighboring cell response to apoptotic or necrotic PCD, revealing a new role for shingosine-1-phosphate signaling in regulating the efferocytosis of apoptotic cell by epithelia.