@baris Thanks, now that it's a builtin function, it's even better.
How about notifications that refers to the deleted topic, is these not required to be deleted?
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.