Solved
I am storing array in sessionstorage. I'm able to update the array using
sessionStorage.setItem(Op_withoutSpaces + "_" + i, array);
but i couldn't remove or clear the array in sessionstorage using below code.
sessionStorage.clear(Op_withoutSpaces + "_" + i);
sessionStorage.RemoveItem(Op_withoutSpaces + "_" + i);
Let me know what is wrong in this.
Hi
First of all, TW.sessionStorage.clear() function doesn't accept any arguments, this function will clear ALL items in sessionStorage.
Refer to MDN document.
So you are not supposed to pass anything in the parenthesis like below.
TW.sessionStorage.clear(Op_withoutSpaces + "_" + i);
Secondly, can you try removing other code and passing hard-coded key name to TW.sessionStorage.RemoveItem("key") instead of parameter for testing purpose?
I tested both TW.sessionStorage.clear and TW.sessionStorage.RemoveItem("key") in expression and both work just fine.

Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

