Removes all data from an object store.
Syntaxvar retVal = IDBObjectStore.clear();
This method has no parameters.
A request representing the results to clear the data.
This method can throw the following DOMException exceptions:
The update is not allowed for one of the following reasons: the cursor was created using openKeyCursor, the cursor is iterating to a new record, or the cursor has moved past the last record.
The associated transaction is read-only.
The associated transaction has closed or is not active.