How to make something collide then disappear.

So, i am making a brick breaker game. I have the bricks set up and the ball bounces off of the bricks. I want to be so that when the ball hits the brick to bounces off and then the brick disappears. I have the code to make the brick disappear when the ball collides with it but the ball does not bounce back. Does anyone know what i can do.

Thanks.

Destroy takes an optional t parameter which allows you to wait before destroying an object.

Destroy (gameObject, 5f);

This will wait 5 seconds.

Thanks that works!! <3