title: Can an object automatically delete itself in javascript once it has achieved its purpose?
body: <p>I am wondering if it is possible for an object in javascript to delete itself once it has finished its task.</p>
  
  <p>For example, I have the following object...</p>
  
  <pre><code>var myObject = Object.create(baseObject);
  myObject.init = function() {
    /* do some stuff... */
     delete this;
  };
  myObject.init();
  </code></pre>
  
  <p>Does this work?  If not, is there another way?</p>