title: Delete object from internal method / Or delete from pointer (Javascript)
body: <p>Apparently this is not possible</p>
  
  <pre><code>function node(){
    this.value="hello";
    var self = this;
  
    this.remove=function(){
      delete(self); //no found
         //or
      self=null;  //no found
    }
  }
  
  var test = new node();
  test.remove(); //no found
  </code></pre>
  
  <hr>
  
  <p>This only removes the pointer, this does not delete the pointed object</p>
  
  <pre><code>var test = new node();
  var aux = test;
  delete aux; 
  </code></pre>
  
  <hr>
  
  <p>This only removes the pointer, this does not delete the pointed object</p>
  
  <pre><code>var test = new node();
  var aux = test;
  aux=null;
  </code></pre>