Currently I have datas variable that contains multiple element values.
like this
["WLP001","WLP002","WLP003","WLP004","WLP022"]
Deleting datas variable will be possible like this localStorage.removeItem("datas");
But if I have a variable in my js code like this var item = "WLP022";
and delete only the WLP022 inside of that datas would it be possible?

datasfrom localstorage then remove required values and setdatasagain..spliceor by even filtering out the list. Then you just simply store it again to local storage with the new array value.