code: def delete_index(index):
      
      logger.info("Deleting search index: '%s'", index)
      client = get_client()
      return client.indices.delete(index=index)
docs: Delete index entirely (removes all documents and mapping).