Delete item in array | quick.db

Does anyone know how to delete a certain item inside of an array with quick.db?

You’ll have to retrieve the array then remove the item from the array then write back the edited array.

Example:

let myarray = db.get("coolarray");
// myarray looks like: ["item1", "item2"]

// remove the last item from myarray
let newarray = myarray.pop();

// write back array
db.set("coolarray", newarray);

Could u tell for which purpose do u want to delete ?