Although you cannot delete a user you can change all their details to neutral if your country has some data laws which prevent the retention of personal data. Here is how to do it.
Here is the same student’s card
Note
You can replace all fields with XXXX for example but the User Name and Password...