How to destroy all enemies within a certain collider?

Hey everyone, I’m remaking a level from Mega Man 2, and when I leave a room I want all the enemies still alive in that room to be destroyed. I have a BoxCollider2D covering each room with this EnemyTracker script attached, which when the player exits this collider, every enemy is destroyed. That’s the problem though, every single enemy on the map is destroyed instead of only the enemies in that room (Collider2D). Anyone know what I can do to fix this? Any help is appreciated!

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// This script is to be applied to each CamBounds collider to track (and destroy) enemies that are within the collider.
/// </summary>


public class EnemyTracker : MonoBehaviour
{
    private GameObject[] aliveEnemies;

    private void OnTriggerExit2D(Collider2D other)
    {
        if (other.gameObject.tag == "Player")
        {
            DestroyAllEnemies();
        }
    }

    void DestroyAllEnemies()                                                    // destroy all alive enemies once you leave an area (so they don't follow you)
    {
        aliveEnemies = GameObject.FindGameObjectsWithTag("Enemy");

        for (var i = 0; i < aliveEnemies.Length; i++)
        {
            Destroy(aliveEnemies*);*

}
}

}

Its better you sort them up while you spawn them. The simplest way would be to make a parent gameobject and spawn all enemies as its child. You could use names for parent gameobject like “Room_1_Enemies”, so it becomes easy for you to sort them out. You can track which room the player left and check if there is any Enemy holder gameobject for that room, if yes then Destroy.