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

# remove(_:)

Removes the receiver’s selected objects from the content collection.

## Declaration

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

## Parameters

- `sender`: Typically the object that invoked this method.

## Discussion

Discussion See removeObject(_:) for a discussion of the semantics of removing objects when using Core Data. Special Considerations Beginning with OS X v10.4 the result of this method is deferred until the next iteration of the runloop so that the error presentation mechanism (see Error Responders and Error Recovery) can provide feedback as a sheet.

## See Also

### Adding and Removing Objects

- [addObject(_:)](appkit/nsarraycontroller/addobject(_:).md)
- [add(contentsOf:)](appkit/nsarraycontroller/add(contentsof:).md)
- [insert(_:atArrangedObjectIndex:)](appkit/nsarraycontroller/insert(_:atarrangedobjectindex:).md)
- [insert(contentsOf:atArrangedObjectIndexes:)](appkit/nsarraycontroller/insert(contentsof:atarrangedobjectindexes:).md)
- [remove(atArrangedObjectIndex:)](appkit/nsarraycontroller/remove(atarrangedobjectindex:).md)
- [remove(atArrangedObjectIndexes:)](appkit/nsarraycontroller/remove(atarrangedobjectindexes:).md)
- [removeObject(_:)](appkit/nsarraycontroller/removeobject(_:).md)
- [remove(contentsOf:)](appkit/nsarraycontroller/remove(contentsof:).md)
