The documents for amplification indicate that you can clear (delete) a specific storage key by storing the value nullfor this key:
amplify.store( "MyKeyName", null );
We can get all current storage key names with amplify.store(), and then use jQuery $.eachto view the list and delete (delete) each of the elements currently stored in the amplifyjs memory:
$.each(amplify.store(), function (storeKey) {
amplify.store(storeKey, null);
});
, , , - :
amplify.clearStore = function() {
$.each(amplify.store(), function (storeKey) {
amplify.store(storeKey, null);
});
};
amplify.clearStore();