Genome-wide analysis of genetic and epigenetic control of programmed DNA deletion