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

# remove(_:)

Removes the receiver’s content object.

## Declaration

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

## Parameters

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

## Discussion

Discussion Removes the receiver’s content object using removeObject(_:). 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 can provide feedback as a sheet.

## See Also

### Managing objects

- [newObject()](appkit/nsobjectcontroller/newobject().md)
- [addObject(_:)](appkit/nsobjectcontroller/addobject(_:).md)
- [removeObject(_:)](appkit/nsobjectcontroller/removeobject(_:).md)
- [add(_:)](appkit/nsobjectcontroller/add(_:).md)
- [canAdd](appkit/nsobjectcontroller/canadd.md)
- [canRemove](appkit/nsobjectcontroller/canremove.md)
