When Rule is disabled, automatically disable alerts?

Hello Elastic Team,

I have multiple rules running in Elasticsearch instance. Out of which I stopped one rule which had "Active" alerts. Those alerts are still in active state.

I am trying to find a way that when we change the rules to disable/delete the alerts should automatically update to untracked status.
Is this possible or some other way around ?

Note :- I am using elastic v 8.14.0

Thanks,
Fiza

how many alerts do you have do disable?

Hi @Alex_Salgado-Elastic ,

Right now, it's around 20 alerts. But this can not always be the scenario.

Right now, it is in testing phase, the number may vary as per the environment monitored and also the conditions met. Instead of manually turning them to untracked, I want it to be automatic.

Thanks,
Fiza