BuddyDev

Search

Option to remove/delete all user data for inactive users

Tagged: 

  • Participant
    Level: Initiated
    Posts: 7
    Melanie on #51565

    Hi,
    awesome forum community and thanks for all the great tips!

    I was trying to find a plugin or an out-of-the-box solution from BuddyBoss to be able to remove all user data for inactive users, including all messages, photos, comments etc.
    Is there any plugin or code snippet I might have missed thats able to completely remove all user data for inactive users (after a specific time)?
    Or will I need to manually remove each user ID data from each single database table?

    Thank you 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #51577

    Hi Melanie,
    Welcome to Buddydev support forums.

    Deleting a user will delete most of their content.

    We wrote a snippet for similar purpose in a different contetx
    https://github.com/buddydev/delete-inactive-bp-users/blob/master/delete-inactive-bp-users.php

    That snippet deletes users who do not login to the site within 10 days of registration.

    I hope you may be able to user/customize it.

    PS:- By inactive, I am assuming the users who registered but did not activate/logged in to the site.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved