delete()
Delete multiple items from a collection
Example
db.collection("users").delete({
    banned: false,
    accountCreated: "13/02/2023"
}).then(() => {
    //Items deleted from db;
}).catch(error => {
    console.log("error:", error);
});delete(<filter>)
Parameter
Description
filter
The filter used to select the items to remove
Last updated
Was this helpful?