// 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);
Destroy(this.gameObject);
Destroy(gameObject); // destroys the game object attached to the script
Destroy(gameObject); //destroys the gameobject