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>)

ParameterDescription

filter

The filter used to select the items to remove

Last updated