<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/Entity/ChildCollection/remove(_:preservingWorldTransform:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation6EntityC15ChildCollectionV6remove_24preservingWorldTransformyAC_SbtF"
  },
  "title" : "remove(_:preservingWorldTransform:)"
}
-->

# remove(_:preservingWorldTransform:)

Removes the specified child from this entity.

```
@MainActor @preconcurrency func remove(_ child: Entity, preservingWorldTransform: Bool = false)
```

## Parameters

`child`

The child entity to remove from the collection.

`preservingWorldTransform`

`true` to preserve the world transform. `false` to
preserve the relative transform. (Use `true` if the
entities should keep its effective location and size in
the scene!)

## Discussion> Note: This may modify the order of the `ChildCollection`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)