title: Clear a list or dictionary in Angularjs with a key, value structure
body: <p>A very basic question, I have a list or dictionary in AngularJS with a key,value structure like this:</p>
  
  <pre><code>$scope.itemList = {}
  </code></pre>
  
  <p>This list fills with data coming from a JSON file, what I need to do is to clear this list at some point but I dont know how to do it,</p>
  
  <p>I tried the following but didnt worked.</p>
  
  <pre><code>$scope.itemList.clear()
  </code></pre>
  
  <p>Some help would be great.</p>
  
  <blockquote>
    <p>Note: I said a list but actually is an object what I have because of
    the {}, I'll leave the question as is, someone can think in a wrong
    way as I did.</p>
  </blockquote>