The documentation recommends the following function to delete a specific index:
client.delete({
index: 'myindex',
type: 'mytype',
id: '1'
}, function (error, response) {
// ...
});
Which I have adapted to:
client.delete({
index: '_all'
}, function (error, response) {
// ...
});
But that gives me the following error:
Unable to build a path with those params. Supply at least index, type, id
I've been searching around for a couple of hours to no avail, anyone have any ideas?