docs: def delete_index(es, index_name: str):
      """Delete the terms index"""
  
      if not index_name:
          log.warn("No index name given to delete")
          return None
  
      result = es.indices.delete(index=index_name)
      return result