Cell ablation is a strategy to study cell lineage and function during development. Optogenetic methods are an important cell-ablation approach, and we have previously developed a mini singlet oxygen generator (miniSOG) tool that works in the living Caenorhabditis elegans. Here, we use directed evolution to generate miniSOG2, an improved tool for cell ablation via photogenerated reactive oxygen species. We apply miniSOG2 to a far more complex model animal system, Drosophila melanogaster, and demonstrate that it can be used to kill a single neuron in a Drosophila larva. In addition, miniSOG2 is able to photoablate a small group of cells in one of the larval wing imaginal discs, resulting in an adult with one incomplete and one normal wing. We expect miniSOG2 to be a useful optogenetic tool for precision cell ablation at a desired developmental time point in live animals, thus opening a new window into cell origin, fate and function, tissue regeneration, and developmental biology.