title: Unable to delete a worksheet using EPPlus
body: <p>I am using this code:</p>
  
  <pre><code>ExcelPackage pck = new ExcelPackage(newFile);
  
  var wk = pck.Workbook.Worksheets.SingleOrDefault(x =&gt; x.Name == "Content");
  
  pck.Workbook.Worksheets.Delete(wk);
  </code></pre>
  
  <p>But in delete it gives me "IndexOutOfRangeException", but I am trying to delete from object, I have tried to delete by index "1", I just have two worksheets, and the same exception. The file and worksheet is not null, but when I execute delete in anyway I receive the "IndexOutOfRangeException".</p>
  
  <p>What's happening?</p>
  
  <p>Note: I have created this worksheet from ExcelPackage too and now i want delete it.</p>