Sutdent is enrolled in the same class twice after "Sync Course Enrollment"

I have exported my student enrollment from 2024 and imorted it in 2025
so i am not sure what should be the new statues of students / teachers in 2024.

if this is the issue that what to do to solve it
please check my comment here for more insight i think it is related: Setting up Invoicees - #16 by Aziz

and let me know how to clean up the table to keep 2025 enrollment only but not lose the data of my 2024 so i can use it when needed.