Clear all store entries

I have a store, I successfully upload records from it. Now I need to clear all the records. 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 can i solve this?

+5
source share
3 answers

myStore.loadData([],false); is a solution.

+3
source

Delete will delete the records that you transfer. Do you want to delete all as inmyStore.removeAll();

+8
source

I find out that, at least on ExtJS 4.2.3, removeAll gives an error on the first release after loading. I resolved this:

store.clearData();
store.removeAll();
+6
source

All Articles