The programmed cell death that occurs during development, tissue maintenance, and response to injury.