How to erase Ubuntu user account

Solution 1:

Erasing of the user is sufficient, but the deleted files can be restored.

I suggest shredding the user home directory /home/user and then removing the user.

To shred the directory run

find /home/$USER -exec shred {} \;

and then remove the user.

That will overwrite all user data.