Using correct way to unset localStorage variable

Using the localStorage.removeItem() funtion to unset the cookie. With just setting it to 'null' the 'checksaveexists' function does not function as expected.