First time here? Check out the FAQ!
1

How do I mass delete all questions from a user?
 

Over the past few days, we've come under heavy spam attacks. They create multiple accounts and post as many as 50 spam questions from each. It's a lot of work to delete each question individually. is there a management command that will let us moderators/administrators delete all questions from a specific user, especially a spam user?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
FranciscoD's avatar
71
FranciscoD
asked 10 years ago

Comments

see more comments

1 Answer

1

We'll need to implement this feature. It is possible to do from the python shell, but nothing in the UI.

It is possible to delete the user via the "django admin" interface and that will delete all objects created by that user (anything that has ForeignKey to that user row). However the downside is that this user will be able to re-register. A better option is to make the account "blocked" and keep the email address on file.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 10 years ago
link

Comments

1

Yes but what we really need is block + delete all posts from that user option in the web UI

mether's avatar mether (10 years ago)

they just make up new email addresses anyway - not sure it is important to keep track of them.

tim's avatar tim (10 years ago)
see more comments