<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCollectionView/deselectItems(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCollectionView(im)deselectItemsAtIndexPaths:"
  },
  "title" : "deselectItems(at:)"
}
-->

# deselectItems(at:)

Removes the specified items from the current selection.

```
func deselectItems(at indexPaths: Set<IndexPath>)
```

## Parameters

`indexPaths`

The index paths of the items you want to deselect.

## Discussion

Use this method to reduce the current selection. If you want to animate the deselection of the new items, call this method on the collection view’s [`animator()`](/documentation/AppKit/NSAnimatablePropertyContainer/animator()) proxy object instead. This method does not call any methods of the delegate object when making the selection.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)