---
title: "removeChildWindow(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nswindow/removechildwindow(_:)"
---

# removeChildWindow(_:)

Detaches a given child window from the window.

## Declaration

```swift
func removeChildWindow(_ childWin: NSWindow)
```

## Parameters

- `childWin`: The child window to detach.

## See Also

### Managing Attached Windows

- [childWindows](appkit/nswindow/childwindows.md)
- [addChildWindow(_:ordered:)](appkit/nswindow/addchildwindow(_:ordered:).md)
- [parent](appkit/nswindow/parent.md)
