I have a bullet object and Enemy object i want to destroyed it when bullet hits enemy

i have Enemy object with tag Enemy i want to destroy Both when they collide both each other help me please quick

You need to use a collision event, OnCollisionEnter() or OnTriggerEnter() depending upon how you set up the colliders (whether the colliders have isTrigger is checked or not). You could place a script on the bullet such as:

    public class MyBullet{
    
              private void OnCollisionEnter(Collision other) {
                     if (other.gameObject.CompareTag("Enemy")){
                                Destroy(other.gameObject); // this destroys the enemy
                                Destroy(gameObject); // this destroys the bullet
                     }
              }
}