Can someone help with the below code please…after having a logged in user create a list in a dataset, I want to give them the option to then delete that list and start again, without affecting any other users list.
The dataset is set so anyone can read, and update. The code runs with no error but the items are not removed from the dataset??
{ var array = ;}
export function dataset1_ready() {
let count = $w( “#dataset1” ).getTotalCount();
$w( “#dataset1” ).getItems( 0 ,count)
.then((res) => {
let items = res.items;
items.forEach((item) => {
array.push(item._id);
});
});
}
export function button3_click(event) {
wixData.bulkRemove( “Membersordersheet” , array)
.then( (results) => {
console.log(results);
})
. catch ( (err) => {
console.log(err);
});
}