diff --git a/src/mattermostdriver/endpoints/elasticsearch.py b/src/mattermostdriver/endpoints/elasticsearch.py
index <HASH>..<HASH> 100644
--- a/src/mattermostdriver/endpoints/elasticsearch.py
+++ b/src/mattermostdriver/endpoints/elasticsearch.py
@@ -8,3 +8,8 @@ class Elasticsearch(Base):
 		return self.client.post(
 			self.endpoint + '/test'
 		)
+
+	def purge_all_elasticsearch_indexes(self):
+		return self.client.post(
+			self.endpoint + '/purge_indexes'
+		)
elasticsearch: Update api endpoints