How to Set a object to Destroy everything that it touches

Hello I really could use some help with this.

So I have a black line at the bottom of my 2d game and I wish to set it as a kind of ‘destroy all’ function, so regardless of what tag any other object has, anything that collides with the line will be destroyed! This includes anything that has been cloned!

Really could use some help!

script is untested but should do the job

  void OnCollisionEnter2D(Collision2D coll) 
    {
    Destroy (coll.gameObject);
    }