title: Programmatically remove block from layout
body: <p>I want to remove the product_options_wrapper block from the product view page according to the logedin user via frontend router controller.</p>
  
  <p>I know that I can programmatically append a new block but I didn't find a remove function. :-(</p>
  
  <p>Tried sth. like that</p>
  
  <pre><code>$this-&gt;getLayout()-&gt;unsetBlock('product_options_wrapper');
  
  $this-&gt;getLayout()-&gt;getBlock('product.info')-&gt;remove('product_options_wrapper');
  </code></pre>
  
  <p>But nothing works.</p>