@DanAdair Everytime when you install or remove the plugins, you need click to restart and rebuild NodeBB in ACP, this procedure is safe, but if you worry, you can create backup of you're database before something to do it, use command mongodump ⛹
Script to remove post from database
-
Hi,
Since nodebb does not remove post from the database (only marking it as deleted), I have created this script to remove the post
from the database (redis only).Put it in the same location as config.json, modify as needed, and run with:
$ node remove_post.js.
-
Why not create a plugin out of it, using NodeBB's database functions so that it works across all databases?
-
Check out this commit https://github.com/NodeBB/NodeBB/commit/a65d61290742fef5ed76834a73e069336ebe5b6b and this file https://github.com/NodeBB/NodeBB/blob/master/src/posts/delete.js.