If you have entered a leaving date for the wrong student then you can delete it by going to the student profile and then the extended. The leaving date can be found in the school information section, where you can remove this.
Don't forget to click Save at the very bottom of the extended tab to save the changes.