How student leaving works in Education

if a batch finished their program , how the student exit works. there is student disable and exit options in student doc but its individual case. if a whole batch is leaving and i dont want that student in any further operation how that works ?
can anyone help me with this one