Well, I know I can do this from the admin interface but I was wondering how
a user can remove himself from the website if he so wishes.

Should I put the code `db(db.auth_user.email=="some...@domain.com").delete()`
in a {{=A(_href=action)}} or is that bad practice? I want the user to be
able to delete himself.


On Mon, Jan 7, 2013 at 9:56 PM, Bruno Rocha <rochacbr...@gmail.com> wrote:

>
> If you have shell access.
>
> Go to your shell
>
> python web2py.py -S yourappname -M
>
> >>> db(db.auth_user.email=="some...@domain.com").delete()
> >>> db.commit()
>
> The user with "some...@domain.com" is now deleted!
>
> If you dont hace shell access, just go to your admi  interface, database
> adminitration and delete from auth_user table.
>
> --
>
>
>
>

-- 



Reply via email to