how to delete 1 string from local storage array code example Example: localstorage clear item localStorage.removeItem(key);