<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSplitViewController/removeSplitViewItem(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSSplitViewController(im)removeSplitViewItem:"
  },
  "title" : "removeSplitViewItem(_:)"
}
-->

# removeSplitViewItem(_:)

Removes a specified split view item from the split view controller.

```
func removeSplitViewItem(_ splitViewItem: NSSplitViewItem)
```

## Parameters

`splitViewItem`

The split view item to remove.
  
  > Important:
  > If the split view item is `nil` or isn’t in the ``doc://com.apple.appkit/documentation/AppKit/NSSplitViewController/splitViewItems`` array, the system throws an exception.

## Discussion

After you remove a split view item, the system adjusts the layout of the split view accordingly.

---

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)