You could try something like this.
DELETE
FROM wp_users
WHERE ID in ( 5506, 5507,... );
Make sure to try it on a staging area first and backup your database.
Related Posts:
- Automatically delete inactive users after 2 months
- Force display name as full name
- How to discover and delete unused accounts?
- Allow guests to save favourite pages?
- How to assign an additional/extra/second user-role to multiple users (of a specific user-role)
- How do I properly format the user_role array?
- User fields that can be edited by administrator?
- Does wp_delete_user() remove all user content?
- How to delete all post and attachments of a user when I delete it?
- New users not showing up in Post -> Edit
- Bulk lock users without email address?
- Restrict access to non-wordpress section of site with user roles?
- Delete a user from frontend
- New User Save Filter
- Privilege to recover trashed posts
- How to bulk change user role to “No role for this site”
- How to allow an user role to create a new user under a role which lower than his level only?
- How to programatically change username (user_login)?
- How to get userid at wp_logout action hook?
- What’s the difference between the capability remove_users and delete_users?
- How to change user_login with wp-cli?
- How to let contributors to create a new revision(draft) editing their published posts
- How to hide media uploads by other users in the Media menu?
- Get users with atleast one post
- edit profile validation refreshes all field if missing wordpress
- Wp_User_Query not sorting by meta key
- Migrating users from .com to .org?
- How to mass delete one line from all posts
- Get total number of authors on the site
- How to migrate wordpress users from one blog to another
- Drop down list in user profile page
- How can I link users across multiple subdomains?
- Create user with author role but no login information
- Importing Existing Users with Passwords
- Create not-activated user in code, wordpress
- Remove the deleted users avatar from list
- Is there any function available to echo current user’s profile url?
- Auto delete WordPress users according to time
- Why wordpress showe “admin is editing…” whoever edits?
- Restricted registrations or removing the ability to edit your password/email
- Limit amout of sessions on user-by-user basis?
- Redirect user to login before viewing custom post
- Use wp_update_user to update custom column in wp_users table
- Does an AJAX call on the Admin Side Automatically include the User Data/Capabilities?
- Bulk create clean user_nicename from user_email with SQL function
- How can I attach a user to another user with user meta
- How do I protect user_activation_key?
- WP not logging in at first time
- Log out users from every where
- Separate Out Real Users
- No user found when using REST API
- is_user_logged_in() throwing undefined function error
- How to prevent a specific users’s profile photo (gravatar) from showing on the frontend to other users?
- WordPress REST Api: update user
- Hackers tried user name with wrong case [closed]
- SQL Bulk update all WordPress user’s nicknames to firstname + lastname format
- Redirect logged on user to a specific page based on wp user role, page id
- Show WordPress users in grid with image and name
- Automatic Website user password generation
- Redirect users after login
- How to hide some users to unlogged users [closed]
- List all users and current week entries
- Need to manually add multiple WP users with same e-mail address (with good reason)
- How to get current user on a multi site that is using domain mapping?
- WordPress Redirect Specific User. Tired of Peter’s redirect Plugin its not working
- Can I edit the database to change a login?
- User Meta stuff
- how or where wordress collect unlogged user session
- User can’t search himself on rest api
- How do I update user email from frontend input field?
- No plugin populate user information in to form
- How to allow access based on the user meta flag
- Authentication between two different sites using the WordPress login cookie
- How to block specific user id in custom login form?
- Cannot update newly added User field using wp_update_user
- Block editor completely gone for second of two super user
- How can I display Only the first Array/Object?
- How to create page for user?
- How to prevent multiple user accounts with the same meta field?
- How do I set a maximum upload size for a specific user role (Editor)
- Return all users that have one or more published blog posts
- members only products
- Modify the user data stdObject and add extra items to it?
- Create relationships between users or user roles
- User Permissions on custom post type
- update custom field user profile from front end form
- Change “logged in as a ” link in comments form
- Specific Content on pages based on user
- I try to add informations to User profile
- force registered user as seller
- Not able to call value in the core files
- Add a column before username in the users profile table
- Privacy in WordPress
- bulk deleting empty items in the media library
- Create a wordpress admin user and only let them edit and post blog posts?
- How to display Most Recently Read 10 Posts by a logged in user in wordpress
- Remove @gmail.com from WordPress username
- How to create a specific role to manage users
- How to track all users logged into a site?
- Export user data from Squirrly’s Starbox plugin?