destroy the last gameobject of a parent code example Example: how to destroy parent gameobject unity Destroy(transform.parent.gameObject);