If you know the user id, you could create a link similar to https://example.com/wp-admin/users.php?action=delete&user=2 , where the value of the user is the user ID.
You can also hook into a function in the users.php
file. It’s a core file, so you don’t want to change it. But you can use the functions therein to properly delete the user.
Related Posts:
- Share user table from WP with Drupal
- Reset Password policy
- How do you manage your pages or functions that require logged-in users?
- determine active user browser at the same time
- How to programatically change username (user_login)?
- How to restrict access to uploaded files?
- Automatically delete inactive users after 2 months
- Replacing the WordPress password validation
- Allowing users to edit only their page and nobody else’s
- WordPress auto login after registration not working
- Disallowing Users of a Custom Role from Deleting or Adding Administrators?
- Hide Admin Menu for Specific User ID who has administrator Role
- Allow up to 5 Concurrent Login Sessions
- Allowing an email as the username?
- Check if specific username is logged in
- Force display name as full name
- Post list based on the user that is logged in
- How to discover and delete unused accounts?
- Allow guests to save favourite pages?
- Why does is_user_logged_in() return false after redirect from another site?
- Basic auth WordPress REST API dilemma
- Copy a user from one WordPress site to another
- Pre-populate Username Field
- Show newly added posts since last user login time /date
- Front end user meta options for users
- How to keep track of user logins?
- How do I properly format the user_role array?
- Get user info outside WordPress
- Associate Page with User
- User fields that can be edited by administrator?
- How can I secure a WordPress blog using OpenID from a single provider?
- How to customize wp_signon()
- Is it possible to get a user with just the password field?
- Redirect after login based on user role (custom login page)
- Check for user meta data at Login
- Redirect User to Homepage if no other redirect is specified
- Can I create users that have access to *some* other users posts instead of all other users posts?
- My custom page template with is_user_logged_in() does not detect that I’m logged in
- Set default page for user account in admin
- Use phpbb user database for WordPress
- WordPress to use Drupal users’ credentials
- Last time a user logged in
- How can I allow password reset based on logins containing the @ character?
- A way to count logged in users and display count?
- stop login if user_status equal zero
- Does wp_delete_user() remove all user content?
- Log all users out of all locations after 24 hours
- Hide everything on site for visitors except specific page IDs
- Redirecting or displaying a message on first login
- How can I allow access to multiple users, using the same login, at the same time?
- How do i make my wordpress website private?
- Managing Users and Creating Groups [closed]
- show text If special user is logged
- How to delete all post and attachments of a user when I delete it?
- Upgrade Nightmare – No Posts, Permissions Issues and Can’t Create a new post
- Redirect user to login before viewing custom post
- Change the user_login at registration
- How to disable a specific page for a specific user
- Max no of simultaneous active sessions for a single user
- Bulk delete users from a csv list
- Allow user access to Dashboard only!
- Restrict access of admin uploads to certain logged-in users?
- When I try to login in wordpress it is showing “USER Doesn’t Exists”
- wordpress user roles are not working
- Displaying different in-page content to cliente/admin
- Should I encrypt the response that triggers an Ajax action? Is nonce sufficient?
- Redirect subscribers to last viewed page after log-in
- Good way to block users within a multisite setup without deleting them?
- wordpress disable login for unverified user
- Problem with automatic role change through cron job
- Rewrite Rules and Login Issue
- How can I allow an User to publish only 5 posts per month?
- Is possible to allow user to login with different role?
- Where are $current_user->allcaps set?
- User can not login
- Use WordPress Login for a non-wordpress site
- Users can only view their content from the front end
- WordPress Login Customization for External Authentication
- Multi-site User Sessions
- Does wordpress support natively the concept of logging-in users? (not admins, but users of the website)
- Is there any action /filter hook I can use to disable login for some user role?
- How to check User Role and redirect to specific page according to Role when login in WordPress?
- Display video on homepage for users who have not logged in
- Restrict access to non-wordpress section of site with user roles?
- Allow admins to login as other users
- Can I Create a Second Admin Level User Role?
- How can i login with user’s password in WordPress being an admin?
- Check if user is logged in via JS? [duplicate]
- Unique password to access a section site
- Use members from 1 site on another one
- New User Save Filter
- Can I edit the database to change a login?
- loginout function customization
- how redirect users to custom login page when “login to reply” is clicked? [duplicate]
- User(s) already exists show error please provide a valid username
- Privilege to recover trashed posts
- One Click Access To Users Account In WordPress?
- Using my own user table
- wp_generate_password sets password but can’t login using created password
- define two login page url