Remove persistent data
If you delete the .cod file that defines a PersistentStore, then all persistent objects that the .cod file created are deleted.
- Import the following classes:
- To remove all persistent data from a BlackBerry® device application, invoke PersistentStore.destroyPersistentObject(), providing as a parameter a unique key for the PersistentObject.
- To remove individual data, treat the data as normal objects, and remove references to it. A garbage collection operation removes the data.
Parent topic: Persistent data storage