When we delete a user from the WordPress admin panel it's removed, but the user values not deleted in the database.

Anyone let me know how to fix the issue. ?

What is the reason for this issue.?

  • What values? Metadata? Did you enable debugging and check the error logs? – Sally CJ May 15 at 13:12
  • @SallyCJ I want to delete in wp-user & wp-usermeta table. – Kanewilliam May 15 at 13:43
  • Well, if the user was indeed removed, then there should be no more entries for that user in the users table. Regarding the user meta table, you could run something like DELETE FROM wp_usermeta WHERE user_id NOT IN ( SELECT ID FROM wp_users ) at your own risks.. and after backing up the database. – Sally CJ May 15 at 14:29

Your Answer

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

Browse other questions tagged or ask your own question.