title: How to remove/erase rows from a selection of a tree view
body: <p>I want to remove selected rows from a treeview or the underlying model.</p>
  
  <p>The following code snipped works, but I have no idea which function of which class I have to call to remove the selected elements.</p>
  
  <pre><code>std::vector&lt;Gtk::TreeModel::Path&gt; pathlist;
  pathlist = get_selection()-&gt;get_selected_rows();
  
  
  for ( std::vector&lt;Gtk::TreeModel::Path&gt;::iterator it = pathlist.begin(); it!=pathlist.end(); it++)
  {
      Gtk::TreeModel::iterator iter = get_model()-&gt;get_iter( *it );
      Gtk::TreeModel::Row row = *iter;
  
      int val;
      std::string str;
  
      row.get_value( 0, val );
      row.get_value( 1, str );
  
      std::cout &lt;&lt; "val " &lt;&lt; val &lt;&lt; std::endl;
      std::cout &lt;&lt; "String:" &lt;&lt; str &lt;&lt; std::endl;
  }
  </code></pre>
  
  <p>The above code works fine.</p>
  
  <p>Now I want to delete the elements which are selected!
  Attention: MULTIPLE selection is activated.</p>