how to destroy a object in unity2D code example
Example: how to destroy in unity
// To remove a GameObject use the function 'Destroy()'
Destroy(gameObject);
// To remove a GameObject use the function 'Destroy()'
Destroy(gameObject);