Currently, I am working through a tutorial on Meteor and attempting to delete an item. The code snippet I have been using is:
lists.remove({Category:"Fraggles"})
Unfortunately, this method no longer works in the latest version of Meteor and I am encountering the following console error: 403 reason: "Not permitted. Untrusted code may only remove documents by ID."
To find the document ID, I used the following code:
lists.findOne({Category:"Fraggles"})
Object {_id: "T88C6tx4G9YJpLzn5", Category: "Fraggles"}
However, I am unsure of the correct syntax to actually remove the document by its ID. Any guidance or assistance would be greatly appreciated.
Thank you for your help!