title: How do I empty a list in R?
body: <p>I have a file with an R program. I load it interactively on R and then I call the main function. During the execution I fill up some global lists but when I run the main function again I want those lists to be empty. How can I empty a filled up list? I tried doing</p>
  
  <pre><code>list &lt;- NULL
  </code></pre>
  
  <p>after execution but it didn't work.</p>