How to 'bulk delete' users?

Technical Support
  • I would like to delete spam accounts from my installation.

    Currently spam users get negative reputation points by other members, so it would be great if there is a possibility to delete all users with reputation < 0.

    It there any way to get this done?

  • @wellenreiter I wouldn't recommend straight up deleting users, but possible just suspending their rights until an admin has time to go over their posts.

    You can't do this without a plugin, but the plugin to do so could be written within a few hours IMO.

  • @pitaj Wasn't the option to (bulk)ban users already available in the admin panel by Control clicking on the users and selecting the ban option?

  • @Kowlin yeah, but he's taking about autobanning users

  • At some point this was part of core but we removed it as it caused annoyances on some communities. People were getting banned for posting unpopular opinions etc. It'd easily doable in a plugin.

  • Well, if you take the time to make a plugin for that, why not include a "mark for spam" function? That way it would be completely distinguishable. Could still be abused, though.

  • I'm not looking for a fully automated process, but a process that generates a list of spam users, where the admin can ban or delete these users with just one click.

    There are several ways to identify spam users.

    What I see is, that users register and either place a spam post directly or wait several days and then post spam.
    So in our forum a user with one post and negative reputation is a spammer with a 99.5% hit rate.

    I really would appreciate a plugin for that, or better a broader one, where based on user parameters different actions like 'ban' or 'delete' can be taken on admin' s decision. One admin could prefer 'ban' another one could prefer 'delete'.

    Also there could be different triggers for actions like 1 post and negative reputation
    registered long (= month or years) ago, but no post,....

    Unfortunately I'm pretty new to nodebb and not able to code a plugin myself.

Suggested Topics

  • 0 Votes
    2 Posts

    Well i found a solution with the users query :

    const axiosInstanceForNativeAPI = axios.create({ baseURL: ENDPOINT_URL, headers: { Authorization: ADMIN_TOKEN_FOR_NATIVE_API }, }); export const getUserByEmail = email => axiosInstanceForNativeAPI.get(`/users?searchBy=email&query=${email}`); export const getUserByUsername = username => axiosInstanceForNativeAPI.get(`/users?searchBy=username&query=${username}`);
  • SOLVED: Looping 'Invalid Session'

    Solved Technical Support
    0 Votes
    18 Posts

    Afaik if you don't set it manually we still create a cookie with a domain derived from the url value in config.json

  • 0 Votes
    2 Posts

    @seanssoh NodeBB has this functionality built in now. You might want to try it without the plugin.

  • 0 Votes
    7 Posts

    I don't even know how to view my current version... Looked in the admin panel and on ssh I type ./nodebb --version or version and nothin.

    After that, I can establish whether I need any further upgrades or not but as it stands, I did a ./nodebb upgrade which was successful.

    I'm going to also have to check and see if I had used GitHub to get NodeBB to begin with, I can't remember if I did.

  • 0 Votes
    4 Posts

    😬 Woops.. Just noticed the purge topic button that appears after deleting.. Moving on..