title: ExtJS Store/Grid reset
body: <p>I have a button that when clicked, will create a JSONstore using a url provided. The store is then loaded into a grid. If the button is clicked again, it adds all the information again (so it is listed twice). I want it so that when the user clicks the button, it clears the store/grid and then adds everything.</p>
  
  <p>Any ideas on how to accomplish this?</p>
  
  <p>Thanks,</p>
  
  <p><strong>EDIT</strong>
  ExtJS 3</p>
  
  <pre><code>datasetStore.removeAll();
  datasetStore.loadData(datasetsArray);
  </code></pre>