title: After removing a sheet from an excel workbook with Apache Poi, a sheet remains?
body: <p>I'm using workbook.removeSheetAt() to remove a certain named sheet from a workbook. However, the workbook contains a new sheet called "Sheet3" after writing it out to disk. What gives? I'm not creating this new sheet anywhere in my code. Note: I am using XSSFWorkbook and all the other XSSF stuff.</p>
  
  <p>Some more info: Here is a snippet from workbook.xml inside the output xlsx. I am deleting sheet with index=2, ostensibly sheetId=3. The template workbook I am starting with only has four sheets.</p>
  
  <pre><code>&lt;sheets&gt;
      &lt;sheet r:id="rId1" sheetId="1" name="Sheet1"/&gt;
      &lt;sheet r:id="rId2" sheetId="2" name="Params" state="hidden"/&gt;
      &lt;sheet r:id="rId4" sheetId="4" name="Warnings" state="hidden"/&gt;
      &lt;sheet r:id="rId3" sheetId="5" name="Sheet3"/&gt;
  &lt;/sheets&gt;
  </code></pre>