4

I started using amplifijs and I successfully stored and retrieved my objects in the storage, but I don't know ho to remove them by name.

I used this syntax:

amplify.store("name",{valName1:"val1", ...});
var storage = amplify.store("name");
var val1 = storage.valName1;

How can I remove them by name like?

amplify.remove("name");
Khasha
  • 1,559
  • 1
  • 12
  • 19

1 Answers1

9

I found the answer :

amplify.store("name",null);
ObiHill
  • 11,448
  • 20
  • 86
  • 135
Khasha
  • 1,559
  • 1
  • 12
  • 19