// To remove a GameObject attached to this script instantly
Destroy(gameObject);
// To remove a GameObject attached to this script
//in certain time (5 seconds for this example)
Destroy(gameObject,5);
// To remove a GameObject use the function 'Destroy()'
Destroy(gameObject);
Destroy(this.gameObject);
Destroy(gameObject); //destroys the gameobject