delete parent unity code example Example: how to destroy parent gameobject unity Destroy(transform.parent.gameObject);