How do you delete all indexes in elastic search using node.js?
So, turns out I was using the wrong method. The below should take care of deleting all the indexes.
client.indices.delete({ index: '_all'}, function(err, res) { if (err) { console.error(err.message); } else { console.log('Indexes have been deleted!'); }});
You can introduce specific index names within that 'index' parameter, and you can also use '*' as an alternate to '_all'.