We still need to do it through the REST endpoints for unit tests. So I think it needs to exist, just like the search end-point _refresh to force elasticsearch to flush its index for searches.