Resolving Issues with Lingering Entities in Elastic search Post-Airflow Update

Original Slack Thread

Hey all, we ran an update of the Airflow lineage plugin and ingestions started running with a cluster of prod where we use PROD in our ingests. The cluster was patched soon afterwards but we can’t get rid of the prod entities via CLI hard deletes. The entities are no longer on the DB but appear to hang on in Elastic search. Is there a recommended way of dealing with cases like these?

You can use the restore indicies endpoint https://datahubproject.io/docs/api/restli/restore-indices/