title: Delete an excel sheet using Apache POI
body: <p>I have to delete a sheet from the Excel file. </p>
  
  <p>Here's my code snippet :</p>
  
  <pre><code>FileInputStream fileStream = new FileInputStream(destFile);
  POIFSFileSystem fsPoi = new POIFSFileSystem(fileStream);
  
  HSSFWorkbook workbook = new HSSFWorkbook(fsPoi);
  
  int index = 0;
  
  HSSFSheet sheet = workbook.getSheet("Setup");
  if(sheet != null)   {
      index = workbook.getSheetIndex(sheet);
      workbook.removeSheetAt(index);
  }
  return destFile;
  </code></pre>
  
  <p>After this I'm <strong>getting exactly the same workbook which I passed, without the removal of the sheet</strong> "Setup"</p>
  
  <p>Help me resolve this. Any help would be appreciated</p>