---
title: "removeSelectionIndexPaths(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstreecontroller/removeselectionindexpaths(_:)"
---

# removeSelectionIndexPaths(_:)

Removes the objects at the specified index paths from the tree controller’s current selection.

## Declaration

```swift
func removeSelectionIndexPaths(_ indexPaths: [IndexPath]) -> Bool
```

## Return Value

Return Value true if the selection was changed.

## Discussion

Discussion Attempting to change the selection may cause a commitEditing message which fails, thus denying the selection change.

## See Also

### Managing Selections

- [selectsInsertedObjects](appkit/nstreecontroller/selectsinsertedobjects.md)
- [addSelectionIndexPaths(_:)](appkit/nstreecontroller/addselectionindexpaths(_:).md)
- [avoidsEmptySelection](appkit/nstreecontroller/avoidsemptyselection.md)
- [preservesSelection](appkit/nstreecontroller/preservesselection.md)
- [alwaysUsesMultipleValuesMarker](appkit/nstreecontroller/alwaysusesmultiplevaluesmarker.md)
