How to destroy an instantiated gameObject from another script

I am instantiating a prefab from one script, but i want to destroy it from another. But I don’t know how since an instantiated object is private. For example

Instantiate.js

function OnMouseUpAsButton () {
var blank : GameObject = Instantiate(dotgrey, transform.position, transform.rotation);
}

Destroy.js

InvokeRepeating("CleanUp",0,1);

function CleanUp () {
Destroy(blank);
}

The second script will obviously not know what blank is because it is private. How do I circumvent this problem?
Thank You.

Pass the cached go to other script using GetComponent.
Here’s an example, this will work if both scripts are on same gameobject.
This will destroy go after 5 seconds

Instantiate.js

function OnMouseUpAsButton () {
    var blank : GameObject = Instantiate(dotgrey, transform.position, transform.rotation);
    GetComponent(Destroy).CleanUp(blank);
}

Destroy.js

function CleanUp(arg){
    yield WaitForSeconds (5);
    Destroy(arg);
}