---
title: removeFromParent()
framework: pdfkit
role: symbol
role_heading: Instance Method
path: pdfkit/pdfoutline/removefromparent()
---

# removeFromParent()

Removes the outline object from its parent (does nothing if outline object is the root outline object).

## Declaration

```swift
func removeFromParent()
```

## See Also

### Related Documentation

- [parent](pdfkit/pdfoutline/parent.md)

### Changing an Outline Hierarchy

- [insertChild(_:at:)](pdfkit/pdfoutline/insertchild(_:at:).md)
