title: How to remove all style sheet using ganon DOM parser
body: <p>I am using <a href="http://code.google.com/p/ganon/" rel="nofollow">ganon</a>(http://code.google.com/p/ganon/) <strong>DOM</strong> parser to manipulate the html content.</p>
  
  <p>I need to manupulate the given html page. For that first I need to remove all stylesheet (link tags) from dom. But I didnt find any function to remove all the stylesheet. Only I found the function to remove the stylesheet one by one. I adding the code that I worked. Anyone have an idea how to remove all the style sheets, please help.</p>
  
  <pre><code>include_once('ganon.php');
  $html  = file_get_dom('http//www.example.com');
  $head  = $html-&gt;select("head", 0);
  $head-&gt;select('link', 0)-&gt;delete();//this is delete only the first stylesheet
  </code></pre>
  
  <p>Thanks</p>