Deleting all users without id

Created on 3 January 2022, almost 3 years ago
Updated 4 September 2023, over 1 year ago

Problem/Motivation

I tried to delete over 50,000 users at once by executing drush duda --yes. The batch started but always got stuck after some random amount of users.

Steps to reproduce

1. run drush duda --yes to delete a lot of users (at least 50 I guess)
2. see the error "Call to a member function delete() on null ..." (line 61 of delete_all_users_batch_delete in delete_all.users.batch.inc)

Proposed resolution

Verify the user account exists before deleting it.

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇩🇪Germany ckidow

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024