Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AmplifyJS , remove a stored object

Tags:

amplifyjs

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");
like image 313
Khasha Avatar asked Jan 16 '23 12:01

Khasha


1 Answers

I found the answer :

amplify.store("name",null);
like image 137
Khasha Avatar answered May 28 '23 13:05

Khasha