---
title: "removeChild(at:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/xmldtd/removechild(at:)"
---

# removeChild(at:)

Removes the child node at a particular location in the receiver’s list of children.

## Declaration

```swift
func removeChild(at index: Int)
```

## Parameters

- `index`: An integer identifying the child node to remove. The indices of subsequent children in the list are decremented by one.

## Discussion

Discussion The removed child node is released.

## See Also

### Manipulating Child Nodes

- [addChild(_:)](foundation/xmldtd/addchild(_:).md)
- [insertChild(_:at:)](foundation/xmldtd/insertchild(_:at:).md)
- [insertChildren(_:at:)](foundation/xmldtd/insertchildren(_:at:).md)
- [replaceChild(at:with:)](foundation/xmldtd/replacechild(at:with:).md)
- [setChildren(_:)](foundation/xmldtd/setchildren(_:).md)
