Beats left old index templates after upgrade

We are using beats with elastic in k8s, and every time after beats upgrade old index templates still left. And problem that the ILM still seen this templates and did rollover on all old indexes. And now i have a lot of the empty indexes. I can't find right way to delete the old templates except delete them manually, but i don't like this way. Is there right way to delete old index templates?