title: Delete Item from CollectionView with Swift
body: <p>I want to delete the second Item from a CollectionView. I use this line of code</p>
  
  <pre><code>self.collectionView?.deleteItemsAtIndexPaths([NSIndexPath(forItem:1, inSection:0)])
  </code></pre>
  
  <p>I got this error</p>
  
  <blockquote>
    <p>'NSInternalInconsistencyException', reason: 'Invalid update: invalid
    number of items in section 0.  The number of items contained in an
    existing section after the update (31) must be equal to the number of
    items contained in that section before the update (31), plus or minus
    the number of items inserted or deleted from that section (0 inserted,
    1 deleted) and plus or minus the number of items moved into or out of
    that section (0 moved in, 0 moved out).'</p>
  </blockquote>