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

# remove(_:)

Removes the tree controller’s selected objects from the content.

## Declaration

```swift
@IBAction func remove(_ sender: Any?)
```

## Discussion

Discussion The sender is typically the object that invoked this method. Special Considerations The result of this method is deferred until the next iteration of the run loop so that the error presentation mechanism can provide feedback as a sheet.

## See Also

### Adding, inserting and removing objects

- [add(_:)](appkit/nstreecontroller/add(_:).md)
- [addChild(_:)](appkit/nstreecontroller/addchild(_:).md)
- [canAddChild](appkit/nstreecontroller/canaddchild.md)
- [canInsert](appkit/nstreecontroller/caninsert.md)
- [canInsertChild](appkit/nstreecontroller/caninsertchild.md)
- [insert(_:)](appkit/nstreecontroller/insert(_:).md)
- [insertChild(_:)](appkit/nstreecontroller/insertchild(_:).md)
- [insert(_:atArrangedObjectIndexPath:)](appkit/nstreecontroller/insert(_:atarrangedobjectindexpath:).md)
- [insert(_:atArrangedObjectIndexPaths:)](appkit/nstreecontroller/insert(_:atarrangedobjectindexpaths:).md)
- [removeObject(atArrangedObjectIndexPath:)](appkit/nstreecontroller/removeobject(atarrangedobjectindexpath:).md)
- [removeObjects(atArrangedObjectIndexPaths:)](appkit/nstreecontroller/removeobjects(atarrangedobjectindexpaths:).md)
- [move(_:to:)](appkit/nstreecontroller/move(_:to:)-s5xp.md)
- [move(_:to:)](appkit/nstreecontroller/move(_:to:)-moi9.md)
