Ask Your Question

delete user from askbot?

asked 2012-06-09 16:24:52 -0500

alexandros.z's avatar

updated 2012-07-28 10:40:28 -0500

todofixthis's avatar

What will happen if a user wants to delete his account?

I assume that he should send an email to the admin? But still, deleting the account should not imply that all his questions/answers also to be deleted since this is not helpful for the community.

So, what should be the solution? I see that through django console, you can delete users from the database, but all his questions/answers also are deleted.

Do you have any good ideas what should be the proper way?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-06-09 19:48:18 -0500

zaf's avatar

If we want to keep all the content of a user but not the user himself (which is a very good choice since his content might be valueable), I think an easy way is to just go to admin panel and change/delete few things about him, but not the actual user:

  1. Change his personal stuff, mainly username and email, so that he is not recognisable and does not receive any notifications. This can be done in
  2. Delete his login methons, so that he cannot login with this account anymore. This can be done in - delete everything that refers to this user.
  3. If your site supports uploaded avatars, delete also his avatar (if his has any). You can do this from here
  4. Go to his profile and change his subscriptions to no mail, so that askbot will never again try to send an email to him.
  5. (if there is anything I forget, please add here).

This way you have pseudo-deleted him but the record in database is still there, all his content is there and he is not related to all these any more.

edit flag offensive delete link more



Those are good points, now "blocked" user status hides profile from the list of users, user's url and his/her "about" sections are hidden as well. I think we should also hide the user name. It is worth also hiding avatar and stopping email as you said.

Evgeny's avatar Evgeny  ( 2012-06-09 22:12:31 -0500 )edit

Does "blocked" status only hide the user from non-admins? I experimentally tried blocking a user on my site, but I was still able to see it in the list of users (on the People page).

todofixthis's avatar todofixthis  ( 2012-07-28 10:43:14 -0500 )edit

answered 2012-07-28 10:43:26 -0500

todofixthis's avatar

updated 2012-07-28 10:44:25 -0500

I like the way StackExchange does this, actually. When a user is deleted, her posts remain and are attributed to her username, but her username only appears as plain text (not a hyperlink), and her profile can no longer be accessed (even if you know the URL).

I notice that for all the different statuses that Askbot has for user accounts, there is no "hidden" or "deleted" status.

edit flag offensive delete link more



On askbot now there is "blocked" status - will be available in the upcoming release. The "blocked" status achieves some of the goals that you've listed, but not all, we could work on improving that.

Evgeny's avatar Evgeny  ( 2012-07-28 12:07:46 -0500 )edit

A really "delete" option is for German Askbot Installations a big need, is it possible to add a feature for users to delete themself in the profileview or so?. (Delete of all personal data like Realname, Mailaddress and so on, old postings are ok) It's a German Law. :(

Edur's avatar Edur  ( 2012-09-29 17:32:23 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-06-09 16:24:52 -0500

Seen: 6,793 times

Last updated: Jul 28 '12