how do i destroy another object after collision?

I have two boxes, box1 and box 2..

how can i destroy box 2 after colliding with box 1?

And by the way, what's the opposite of destroy in unity? like for example, i have box4 and box5, after colliding with box 4, box 4 will be destroyed and box 5 will be visible?

i bet this would be simple for you guys, sorry i'm a newbie, struggling for this simple prob.. :) Hope you could help me out :)

how can i destroy box 2 after colliding with box 1?

You can use the OnCollisionEnter() function to perform actions in response to collision events, and you can use the Destroy() function to destroy game objects. You can use these together to destroy an object when a collision occurs.

And by the way, what's the opposite of destroy in unity? like for example, i have box4 and box5, after colliding with box 4, box 4 will be destroyed and box 5 will be visible?

In this case, the opposite of destroying an object is simply not destroying the object.