Deleting user that have not logged in for 2 years

Home Forums Bulk Delete Plugin Deleting user that have not logged in for 2 years

This topic contains 1 reply, has 2 voices, and was last updated by  Sudar 4 months, 3 weeks ago.

  • Author
  • #11624

    Chris Behnke

    I’m sure that this is pretty easy, but I just can’t seem to find in the documentation.

    What is the simple way to delete any user that has not logged in for 24 months or more.



  • #11626

    Post count: 380

    Hello Chris,

    You can delete users based on logged-in date by going to the Bulk Delete users page available in the Bulk WP -> Bulk Delete Users menu.

    You can use the ‘Delete By User Role’ module and then select the user role and other values for the filter.

    But please note that the major requirement for deleting users by logged-in date is that you have the free Simple Login Log plugin active in the site for the duration that you want to delete the users for (in your case 2 years).

    This is because WordPress has no built-in way to record when the user last logged-in and my plugin uses the data captured by Simple Login Log plugin to do that.

You must be logged in to reply to this topic.