0

I use PersistentObject to store login and password to enter directly in the application when I want to delete the values I use PersistentStore.destroyPersistentObject(Info.KEY); But the values still exist. Should I add something?

Michael Donohue
  • 11,776
  • 5
  • 31
  • 44
mobileDeveloper
  • 894
  • 2
  • 14
  • 35

1 Answers1

1

To destory the persistent object you should call PersistentStore.destroyPersistentObject(key) . It can throw ControlledAccessException if the caller does not have the permission to do it. Make sure you are calling the same key you are expecting to be deleted.

rfsk2010
  • 8,571
  • 4
  • 32
  • 46