0

The native wordpress delete users page is unable to load for us, as we have hundreds of thousands of user accounts that it queries and loads into a drop down menu every time the page is loaded. Essentially our wordpress site has gotten so big that it's impossible to delete a user account using worpress's built in tool.

I can delete the user directly from the database, but I also want to attribute their content to someone. Is there another solution for deleting user accounts and attributing their content to another user?

  • Are you able to use WP CLI? wp-cli.org – MikeNGarrett Jun 18 at 22:01
  • I've never used it but I believe its installed on our server. Can users be deleted and have their content reassigned via WP CLI? – Isaac Miller Jun 18 at 22:16
0

Using WP CLI, you can easily delete users without concerns about loading the WordPress UI.

wp user delete is the command you're looking for.

In your case, use wp user delete 123 --reassign=567 for deleting a user by ID and reassigning to another user.

  • I think I'll have to try this. I'll try to get caught up on using WP CLI – Isaac Miller Jun 18 at 22:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.