I'm trying to clean my users/post list, I want to delete in bulk all the users without posts, I'm trying to write my own plugin to achieve that, I've seen that the User module has a delete user, I can require the module from the plugin library, but how can I call from the admin.js.
I've also checked the write API plugin, but I was unable to use the cURL from a js script, I'm using node-libcurl.
What is the best way to achieve that? how can I delete the users from my forum in js, or can I call a custom hook in my plugin?
Sorry if it's a dumb question, and thank you for your time.