Have bullets be destroyed when they collide with ANY collider

Hi,

Was wondering if there is a way to have a bullet (with collider) be destroyed when it hits any object’s collider (enemy/wall, etc), rather than specifying an individual collider.

What’s the best method to use? OnCollisionEnter, OnTriggerEnter, Ray casts, and how?

Thanks

hopefully I’m not mistaken in saying that this will check for any collisions with the bullet

function OnCollisionEnter(){
     Destroy (gameObject);
}

Hope that works!
Scribe