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.
Related Posts:
- Searchable meta value in user.php
- Can’t add users in admin after copying database
- Displaying different in-page content to cliente/admin
- Are there mutiple ways to get usernames (as a hacker)
- Custom default filtering in the user admin panel disables the other sortable columns
- New user form rejected because “passwords don’t match”—but there’s only one password field
- WordPress Password security related questions
- Allow admins to login as other users
- wp-admin/users.php Add a column with last name
- Is nicename the same as nickname in WP?
- wordpress Account Management generate password missing on my laptop
- Confirmation required on email change
- Email user when password is reset by admin
- How to work around “that email address has already been used” error?
- How can I run a WP-CLI command as authenticated user?
- How to redirect a specific user after log-in?
- How to Prevent deleting user accounts in WordPress Back-end?
- LEFT JOIN, INNER OUTER JOIN, LEFT OUTER JOIN is driving me crazy. Please help?
- Recover the user that have been deleted
- Adding a photo to each WP user
- WordPress edit_user_profile_update update secondary role
- Check if user is online?
- How to check that if current user (ID) has posts or not
- How to get the Role Name of the current user? (WordPress)
- how to get recent registered author id?
- Is it possible to duplicate users on a new WordPress install?
- Why don’t first_name and last_name appear when you print_r the WP_User object?
- How to use search_columns in WP_User_Query?
- WordPress to use Drupal users’ credentials
- Authenticate with a Rails app?
- How do I list in the backend all users that were assigned to a custom role?
- Send Email to Users after Deleting Account
- How to add local users to wordpress without email password?
- WP User Query fails when searching meta queries and search columns
- Call to undefined function wp_insert_user()
- Suddenly all emails in User have [email protected]
- *wpupdateuser* user_login in my WordPress database
- Updating user meta
- Changing a username
- Change the user_login at registration
- How to add a user profile page to frontend?
- Error: How to allow the “contributor” to upload media in wordpress
- Delete users from multisite after they have not logged in for a set amount of time?
- Where is the information about the authors for articles stored?
- Restrict access of admin uploads to certain logged-in users?
- how to know when the user is in specific part of the website and when he leaves that part and display the data in the admin dashboard
- Find user by nicename and open profile
- get_user_meta an ID for multiple functions
- Register user when after filling contact form
- Is possible to allow user to login with different role?
- Creating user without username and password
- Is this code true or not
- Check for valid email after user inactivity?
- How do I let contributors edit their posts after being approved once?
- Custom Comment Notifications Fire on each Page Load
- How to check User Role and redirect to specific page according to Role when login in WordPress?
- Users – remove ‘send password’ checkbox
- Send email to all registered users [closed]
- How to get users by specific ID’s WordPress
- how to set default update_user_meta values wordpress
- Fix ‘Add Role’ Option not there in wordpress 5.2.2
- Cannot Update user meta in custom field
- How to programmatically read the plan text password when user register?
- Get user id after save post
- Redirect user to login if not logged in, on specific pages
- Check if user is logged in via JS? [duplicate]
- I want to change my user name
- Unique password to access a section site
- Page for logged in user to Edit/Delete their own content?
- Plugin permissions for Editor role
- Followers for WordPress [duplicate]
- Is there a way to rate users instead of posts?
- Is it possible to build social networking website using WordPress?
- Show metadata in users.php – wordpress
- Is there a way to call via javascript if a user is logged-in on a static html file?
- I need a link that directs the user that is logged to his profile
- Is this a hack? WordPress Usernames of every website we have changed into one single name automatically?
- Getting user data via ajax
- The same session information for peer users on two different WordPress servers
- fine-grained capabilities for user related capabilities
- Users activity history
- How to destroy all user sessions via WP-CLI
- Is a list of user names or IDs in a custom profile field the best way to create a followers list?
- Custom User Role: Can Edit Own Page, Cannot Create New
- Link fields in User Admin list
- How to restrict Admin from creating new users from Add new user screen in dashboard to only of one domain?
- Edit dashboard based on user ID
- is_user_logged_in() not working after domain change
- Designing a member area on my site
- Link to Authors blog posts
- view and update form only for registered users
- Redirect based on log-in status per JavaScript
- i need to let a user to add a role from a frontend form
- Create users from frontend without password
- How to get user contact info
- Why does a super admin on multi site get a rest_user_invalid_id error code when requesting user details through REST?
- How can I list users by date in an array in meta_value?
- Email Subscribe for Downloads in WordPress
- Cant edit profile from frontend
- Can I provide a user’s user_ID to them and can it also be searchable in a member’s directory