Manually remove record from ember data store

maheshiv picture maheshiv · Dec 5, 2013 · Viewed 11.5k times · Source

I am using ember and ember data in my application . How can we remove manually a record from the store in Ember . Currently i am pushing the record to store using push method . I have some issues with ember data save , so i used ajax function for save . Is there any method like record.remove()?

Answer

Kingpin2k picture Kingpin2k · Dec 5, 2013

record.unloadRecord() or store.unloadRecord(record), additionally you can remove all records for a type, store.unloadAll(type)