Deleting multiple localstorage

If I have a few localstorage variables used with keys eg Consult1234, Consult1345, Consult1578… can I use something like a wild card to delete all locastorage with keys “Consult*” or “Consultxxxx”?

While localStorage can only hold single values, there’s no reason you can’t store several variables in one value.

You’ll need to pack them into a string, perhaps using JSON.stringify. You can then delete the one value.