title: How to remove and clear all localStorage data
body: <p>I need to clear all data i set into <code>localStorage</code>. By this, I mean completely reset <code>localStorage</code> to <code>null</code> when users remove their accounts.</p>
  
  <p>How can i do that with a simple function?</p>
  
  <p>I tried this: </p>
  
  <pre><code>function clearLocalStorage(){
      return localStorage= null;
  }
  </code></pre>
  
  <p>But it doesn't work as expected.</p>