---
title: "removeWindow(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nswindowtabgroup/removewindow(_:)"
---

# removeWindow(_:)

Removes a window from the tab group.

## Declaration

```swift
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

Discussion You can use removeWindow(_:) to explicitly remove a window from the tab group. Windows are implicity removed from their associated tab groups when they order out.

## See Also

### Managing Tabbed Windows

- [windows](appkit/nswindowtabgroup/windows.md)
- [selectedWindow](appkit/nswindowtabgroup/selectedwindow.md)
- [addWindow(_:)](appkit/nswindowtabgroup/addwindow(_:).md)
- [insertWindow(_:at:)](appkit/nswindowtabgroup/insertwindow(_:at:).md)
