unity remove gameobject

C#
// To remove a GameObject use the function 'Destroy()'
Destroy(gameObject);Destroy(this.gameObject);
Source

Also in C#: