Remova a criança da cena Swift

if let child = self.childNode(withName: "object") as? SKSpriteNode {
    child.removeFromParent()
}
Elegant Eagle