Deleting Multiple instatiations

okay,

i have made a code to instatiate a cube:

if(Input.GetButtonDown("Fire1"))
	{
	      cube = Instantiate(Block_Cube, transform.position, transform.rotation);
	}

now i want the block to be destroyed which i have successfully done:

    function RayShoot()
{
	var Hit : RaycastHit;
		
		var DirectionRay = transform.TransformDirection(Vector3.forward);
		
		Debug.DrawRay(transform.position, DirectionRay * Range, Color.blue);
			if(Physics.Raycast(transform.position, DirectionRay, Hit, Range))
				{
					if(Hit.rigidbody)
					{
							cube.active = false;
					}
				}
			}

but it only deleted the object i had recently spawned :frowning:

so here is my question:

how can i make it so it deletes more than one(Not at once but when clicked it will delete the object it has raycast)

oh and by the way no linking to previous answers i have read them all.

Hit.rigidbody.gameObject.active = false;