W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2010

[IndexedDB] Need a method to clear an object store

From: ben turner <bent.mozilla@gmail.com>
Date: Tue, 3 Aug 2010 12:09:22 -0700
Message-ID: <AANLkTikJtWhBnB9DNHSETTS3w3bf5iYLh8Pb8oaN3cVE@mail.gmail.com>
To: public-webapps WG <public-webapps@w3.org>
Hi folks,

Currently there are only two ways to clear an object store of all
data: (i) remove the object store and recreate it, or (ii) open a
cursor and call remove for all entries. I propose a third, simpler

interface IDBObjectStore
  void clear();

Any thoughts?

Received on Tuesday, 3 August 2010 19:09:55 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 11 February 2015 14:36:44 UTC