SDK
SDK C++ v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

This SDK has been deprecated because of stability issues. It is not advised to use it in a production environment.

mDelete #

Deletes multiple indexes at once.

Signature #

std::vector<std::string> mDelete(const std::vector<std::string>& indexes);

std::vector<std::string> mDelete(
    const std::vector<std::string>& indexes,
    const kuzzleio::query_options& options);

Arguments #

ArgumentsTypeDescription
indexes
std::vector <std::string>
List of indexes
options
kuzzleio::query_options*
Query options

options #

Additional query options

OptionType
(default)
Description
queuable
bool

(true)
If true, queues the request during downtime, until connected to Kuzzle again

Return #

A vector of string containing the list of deleted indexes.

Exceptions #

Throws a kuzzleio::KuzzleException if there is an error. See how to handle error.

Usage #

std::vector<std::string> indexes;
indexes.push_back("nyc-open-data");
indexes.push_back("mtp-open-data");
try {
  std::vector<std::string> deleted = kuzzle->index->mDelete(indexes);
  std::cout << "Successfully deleted " << deleted.size() << " indexes" << std::endl;
} catch (kuzzleio::KuzzleException &e) {
  std::cerr << e.what() << std::endl;
}