def delete_index(self, index_name):
    'Delete Elasticsearch index.\n\n        Args:\n            index_name: Name of the index to delete.\n        '
    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
Delete Elasticsearch index.

Args:
    index_name: Name of the index to delete.
def delete_index(self, index_name):
    'Delete Elasticsearch index.\n\n        Args:\n            index_name: Name of the index to delete.\n        '
    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