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

# removeWindow(_:)

Removes a window from the tab group.

```
func removeWindow(_ window: NSWindow)
```

## Parameters

`window`

The window to remove from the tab group. This window must already be a member of the tab group.

    Raises an     `NSInternalInconsistencyException`     if the window is not a member of the tab group.

## Discussion

You can use [`removeWindow(_:)`](/documentation/AppKit/NSWindowTabGroup/removeWindow(_:)) to explicitly remove a window from the tab group. Windows are implicity removed from their associated tab groups when they order out.

---

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)