Help Center

Local Navigation

Remove persistent data

If you delete the .cod file that defines a PersistentStore, then all persistent objects that the .cod file created are deleted.
  1. Import the following classes:
    • net.rim.device.api.system.PersistentStore
    • net.rim.device.api.system.PersistentObject
  2. To remove all persistent data from a BlackBerry® device application, invoke PersistentStore.destroyPersistentObject(), providing as a parameter a unique key for the PersistentObject.
  3. To remove individual data, treat the data as normal objects, and remove references to it. A garbage collection operation removes the data.

Index


Was this information helpful? Send us your comments.