I have read many of the posts on here from last year about the capability of DELETing all rows in a collection and I have tried many of the solutions listed on here such as this one:
export function button26_click(event) {
//Add your code for this event here:
$w('#text69').text = "Starting";
wixData.query("MEMBERS")
.limit(1000)
.find()
.then((result) => {
for (var i = 0; i < result.items.length; i++) {
if (result.items[i] === null) continue;
$w('#text69').text = String(i);
wixData.remove("MEMBERS", result.items[i]._id);
}
$w('#text69').text = "Delete's have been made";
});
}
However, I have found all of these work arounds to be inconsistant. Sometimes they will delete a few hundred rows and then when executed again it will remove even fewer rows that the time before.
You have had several months to add the capability to clear a data collection of all data and still I do not see a solution. How hard can this be!! It’s a simple query. Place a link or button on the content manager page that will clear the data collection.
Is someone working on this???