title: localStorage.removeItem based on value
body: <p>I am trying to add an account removal to my application. I store the accounts using one key with multiple values based on an API.</p>
  
  <p>This is how I add the account:</p>
  
  <pre><code>addAccount(state,account){
      state.accounts[account.apikey] = account;
      localStorage.setItem(
          "accounts",
          JSON.stringify(state.accounts)
      );  
  },
  </code></pre>
  
  <p>This is how my <code>localStorage</code> looks like:</p>
  
  <pre><code>key: accounts
  {  
     "API Key 1":{ a bunch of info },
     "Api Key 2":{ a bunch of info }
  }
  </code></pre>
  
  <p>My attempts trying to remove an account based on the API Key:</p>
  
  <pre><code>removeAccount(state,account){
      localStorage.removeItem(account.apikey);
      localStorage.removeItem(JSON.stringify(state.accounts));
      localStorage.removeItem(state);
      localStorage.removeItem(account);
      localStorage.removeItem(state.accounts[account.apikey]);
  }
  </code></pre>
  
  <p>Neither of these ways actually delete the value. Any idea what I might be missing?</p>