title: Removing objects from a layer using KineticJS
body: <p>I am currently working a project involving KineticJS. </p>
  
  <p>I have to dynamically create and delete shapes constantly, but cannot seem to figure out how to do the latter. I've been trying to do:</p>
  
  <pre><code> $ myLayer.remove(myShape)
  </code></pre>
  
  <p>because this is what most posts seem to recommend. But, the documentation says that this will remove the layer from the stage and not the shape from the layer. When I try this in project it in fact removes the layer from the stage. </p>
  
  <p>So am I doing something wrong or is there some other way to remove a shape from a layer?</p>