Clear data store


#1

Is there a way to clear a model in the data store of ember? I don’t want to delete records but only clear my data store cache.

Thanks


#3

You can use the store.unloadAll(type); where type is the model type. For example: store.unloadAll('person');