1//You could just put the keys to remove in an array and loop over them:
2
3let keysToRemove = ["summaryForm", "projectForm"];
4
5for (key of keysToRemove) {
6 localStorage.removeItem(key);
7}
8//Using a full loop, or, using forEach:
9
10keysToRemove.forEach(k =>
11 localStorage.removeItem(k))
12
13//Or use localStorage.clear() if you want to just clear everything.