Seeing up NodeBB with docker isn't officially supported. I suggest you use the Ubuntu guide: https://docs.nodebb.org/installing/os/ubuntu/
Script to remove post from database
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.
Schamper Plugin & Theme Dev
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.
Copyright © 2023 NodeBB | Contributors