Javascript - how to delete an object?
<p>I have an object:</p>

<p><code>var myObj = new myAwsumObj();</code></p>

<p>Now, currently I am deleting it like that:</p>

<p><code>myObj = undefined;</code></p>

<p>But that apparently does nothing, since object still exists (I can see that exceptions are being thrown by something that is in the 'external' javascript file that this object is defined in).</p>

<p>How do I clear all this stuff up? Is it possible? Because it seems like <code>myObj</code> is doing very much in this external javascript file, maybe even creating new objects, is it possible to clear all this mess without refactoring this external file?</p>
