title: Unregistering M3 models
body: <p>What is the current preferred way of unregistering M3 models from the Registry? </p>
  
  <p>In my project I'm using Rascal to analyse ~100 large java programs and my JVM is slowly running out of memory. I found the unregisterProject method in older versions of the Registry and tried using this code but I don't think it's working correctly. </p>
  
  <pre><code>public void unregisterProject(loc project, M3 model) {
      rel[str scheme, loc name, loc src] perScheme 
        = {&lt;name.scheme, name, src&gt; | &lt;name, src&gt; &lt;- model.declarations};
  
      for (str scheme &lt;- perScheme&lt;scheme&gt;) {
             unregisterLocations(scheme, project.authority);
      }
  }
  </code></pre>
  
  <p>My current workaround is to throw a large amount of memory at the problem.</p>