Skip to Content
0
Former Member
Oct 11, 2017 at 11:51 AM

Can i delete data from ODataOfflineStore only from the device?

216 Views

In my app the user must fill in a form and submit it. The process is to insert data via store.executeCreateEntity(…) and then call store.flushQueuedRequests() in order to send the data to the backend. After flushing the user has the data both in the device and the backend.

How can I delete data from the device only? If I call store.executeDeleteEntity(…) all deleted data wil be also deleted from the backend too in the next store.flushQueuedRequests().

Also, store.closeStore() seems not to delete data but only destroy the object from the memory.

I only want to delete data from a store in the device. Is it possible?