public function deleteType($indexName, $type) { $index = $this->getRegistered($indexName); $params = ['index' => $index->getInternalName(), 'type' => $type]; $this->elasticSearcher->getClient()->indices()->deleteMapping($params); }