The extrinsic pathway of apoptosis is involved in the regulation of immune system function by eliminating activated immune cells, such as T cells and natural killer cells, once their target cells have been eliminated.