Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Using NodeBB or Mongo's CLI, what would be the best way to delete all user signatures?
After backing up your database you can run the following.
db.objects.update({_key: {$regex: /^user:\d+$/}}, {$set: {"signature": ''}}); This will match all user documents and set the signature field to empty string.
db.objects.update({_key: {$regex: /^user:\d+$/}}, {$set: {"signature": ''}});
@baris Thank you. I'm pretty new to Mongo and after a little tinkering I figured out I had to run the following to get it work correctly:
db.objects.update({_key: {$regex: /^user:\d+$/}}, {$set: {"signature": ""}}, {multi: true});