Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Manually remove record from ember data store

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()?

like image 529
maheshiv Avatar asked Dec 05 '13 17:12

maheshiv


1 Answers

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

like image 182
Kingpin2k Avatar answered Nov 15 '22 13:11

Kingpin2k