A student can be linked to any number of teachers. Accepting a second invitation does not replace the first one — the links add up, and each teacher sees only their own tasks and their own statistics for that student. Nothing is shared between teachers.
There is no screen where a student can review their teachers or leave one. If a student needs the link undone, the teacher removes them from their students; there is no way to do it from the student’s side.
When a teacher removes a student, every task that teacher assigned to them is cancelled and disappears from the student’s list. Tasks from other teachers are untouched, and the student’s own sets are not affected at all.
An invitation that has not been accepted yet can simply be declined. That only marks the invitation as declined — it does not block anything, and the same teacher can invite the same person again afterwards.