title: JSoup Remove Elements
body: <p>Even though, this may sound too basic, I would like to ask how do I remove an element from doc using Jsoup.</p>
  
  <p>I tried searching for it, but no success.</p>
  
  <p>Here is problem:</p>
  
  <pre><code>Elements myNewElements = doc.getElementsByAttribute("hello");
  
  //Now I need to perform some other methods on myNewElements before removing.
  //Hence..suggested method says,
  doc.getElementsByAttribute("hello").remove();
  </code></pre>
  
  <p>This works fine. But I believe selecting same elements again and again could prove memory hungry. Is it possible ?</p>
  
  <pre><code>doc.select(myNewElements).remove();
  </code></pre>
  
  <p>//Try to select myNewElements from doc.</p>