You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @Raymundo94 , try the following code to remove all
Future deleteAll() async {
final _db = Localstore.instance;
//todos is your table name
Map? allTodoList = await _db.collection('todos').get();
if (allTodoList != null) {
for (var itemId in allTodoList.keys) {
//todos is your table name
itemId = itemId.toString().replaceAll('/todos/', '');
await _db.collection('todos').doc(itemId).delete();
}
}
}
How can I remove all storage?
The text was updated successfully, but these errors were encountered: