Skip to main content

Delete a WordPress user

DELETE 

/users

Permanently deletes the WordPress user identified by the JWT payload. The JWT is decoded to extract the user identifier (email, ID, or login, depending on plugin settings), the user is looked up, and wp_delete_user() is called.

Requirements

  • User deletion must be enabled in the plugin settings.
  • The JWT must be valid, not expired, and not revoked.
  • If "Delete Requires Auth Code" is enabled, AUTH_KEY must be provided.
  • The calling IP must pass any IP allow-list configured in the plugin settings.

Request​

Responses​

User deleted. Their refresh tokens and revoked-token records are removed too. The body can be changed with the simple_jwt_login_response_delete_user filter.