---
title: "CFTreeRemoveAllChildren(_:)"
framework: Core Foundation
role: symbol
role_heading: Function
path: "corefoundation/cftreeremoveallchildren(_:)"
---

# CFTreeRemoveAllChildren(_:)

Removes all the children of a tree.

## Declaration

```swift
func CFTreeRemoveAllChildren(_ tree: CFTree!)
```

## Parameters

- `tree`: The tree to modify.

## See Also

### Modifying a Tree

- [CFTreeAppendChild(_:_:)](corefoundation/cftreeappendchild(_:_:).md)
- [CFTreeInsertSibling(_:_:)](corefoundation/cftreeinsertsibling(_:_:).md)
- [CFTreePrependChild(_:_:)](corefoundation/cftreeprependchild(_:_:).md)
- [CFTreeRemove(_:)](corefoundation/cftreeremove(_:).md)
- [CFTreeSetContext(_:_:)](corefoundation/cftreesetcontext(_:_:).md)
