sudo deluser john
WARNING: This will not delete the user's home directory.
If you want to delete the user's home directory when the user is deleted, issue the following command:
sudo deluser --remove-home john
IMPORTANT: If you had previously configured sudo privileges for the user you deleted by editing the /etc/sudoers file, you should remove the relevant line in that file too.