Usuń dziecko z sceny Swift

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