Hi, we recently had an issue were there were many lingering indices for one of our custom entities that weren't getting removed. Tracked down where it should have been removing these indices to ESIndexBuilder.java > buildIndex(). One thing I noticed in there is that if for whatever reason it fails to delete the old index, that old index will be stuck and will need to be manually deleted since this function only deletes the active index after setting up the new one. What I was thinking was adding a block at the end of the function
here that would remove any indices that follow the index name pattern and don't have an alias to prevent indices being leftover. Does that seem like a good solution that would be wanted upstream or is there already something in place to clean up the indices that we would need to add our custom entity to?