If a GameObject is touching another GameObject (Cube) and I press X, Delete the Cube.

Hi,
I am currently working on a building game for the Oculus Rift, where you can spawn in cubes, etc. I need to add a delete function, where if a GameObject (A hand) is touching a cube, and i press a key, it’ll destroy the cube.
I cant seem to get it working. I am quite new to C#.
If it helps, here is the code for testing if I have pressed X:

` if(OVRInput.GetDown(OVRInput.Button.One))
{

	}

`

Thanks,
Squirrel.

public void OnCollisionEnter(Collision collision)
{
if(collision.gameObject.tag == “cube” && OVRInput.GetDown(OVRInput.Button.One))
{
Destroy(collision.gameObject);
}
}

, Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHit hit;

 if(Physics.Raycast (ray, out hit))
 {
      if(hit.transform.tag == "YourCubeTag")
      {
          Destroy(hit);
      }
 }

i did not understand ur question totaly. If u want to destroy a object when u clicked that object. You can use this.