Clear all records from a store

Viewed 25665

I have a store, I am loading records from it successfully. Now i need to clear all the records in it. How can i do this ?

myStore.remove(); // DID NOT WORK
myStore.clear(); // ENDED UP WITH AN ERROR TypeError: myStore.clear is not a function

How could i solve this?

4 Answers

I'm using version 2.0.12 and none of the above solutions worked. I read their readme.md and found store.clearAll();. That was my solution.

Related