public function deleteType($indexName, $typeName)
    {
        $client = $this->getClient();
        $index = $client->getIndex($indexName);
        $type = $index->getType($typeName);

        return $type->delete();
    }