Collider.OnCollisionEnter??

I’m trying to set up a boundary so that when a collider hits it that collider’s gameobject is destroyed
I’m using this code.
void OnCollisionEnter(Collision other){
Destroy (other.gameObject);
}
But it’s not working.

Update:Please ignore this, I should probably post this on Unity answers.

does something involved in the collision have a rigidbody?