Just deleted over 800 users from my database that joined in the last few hours from obviously fake emails and botted usernames. Make sure to either close registration or have some sort of safety check in place because things are getting hairy out here.

  • kev@mcr.town
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Did you actually delete them or set the deleted column? I’m anxious of leaving dangling references which might cause errors to pop up elsewhere but I’d rather get rid of them completely if that doesn’t seem to cause problems.

    I also found it wasn’t reflected in the user count until I manually manipulated the site_aggregates table. I don’t know if that would have caught up eventually.

    • RGB@lemmyfi.comOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      You have to delete them from local_users and person tables. Be careful with person table to not delete entries from users outside your Instance. It worked for me and fixed the user count in my sidebar.

      • kev@mcr.town
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Cool. I think I’m going to give it a few days in case I deleted someone I didn’t want to. If I hear no complaints (I’m pretty sure I’m the only real local user on my instance anyway 😂) I’ll delete out the db. Thanks!