How do I destory an object?

I thought this was simple I got this line from the unity API

Destroy (gameObject, 5);

and I declared the varable at the top like this.

var gameObject:GameObject;

but I am getting this error.

Assets/Destory.js(20,10): BCE0004: Ambiguous reference ‘gameObject’: Destory.gameObject, UnityEngine.Component.gameObject.

What am I doing wrong?

Dont call your variable gameObject as that is the name of the GameObject on your current object. Simply use another name

var object : GameObject;

    Destroy(object);

Try that?