I have removed a couple of bot users from my Lemmy instance via DB query (I removed them from person table)
If I understand, you still have them in your local_user database table? I’m not sure if they would still be matched up records of local_user to person with a delete from person table.