(self, index_name)
Delete OpenSearch index.

        Args:
            index_name: Name of the index to delete.
Delete OpenSearch index.
Delete OpenSearch index .
def delete_index(self, index_name):
        """Delete OpenSearch index.

        Args:
            index_name: Name of the index to delete.
        """
        if self.client.indices.exists(index_name):
            try:
                self.client.indices.delete(index=index_name)
            except ConnectionError as e:
                raise RuntimeError(
                    'Unable to connect to Timesketch backend: {}'.format(e)
                ) from e
def delete_index ( self , index_name ) : if self . client . indices . exists ( index_name ) : try : self . client . indices . delete ( index = index_name ) except ConnectionError as e : raise RuntimeError ( 'Unable to connect to Timesketch backend: {}' . format ( e ) ) from e