
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
elasticsearch-deletebyquery
Advanced tools
elasticsearch deleteByQuery - back for those with the plugin installed
Elasticsearch-js client extension for the Delete-by-query plugin.
This module provides the deleteByQuery
method which was removed from the core API in ES 2.0.0. For those with the Delete-by-query installed, this will bring back that feature to your Elasticsearch-js client.
Install the package.
npm install --save elasticsearch-deletebyquery
Then extend the Elasticsearch API by including this plugin.
'use strict';
const hosts = ['127.0.0.1'];
const apiVersion = '2.x';
const elasticsearch = require('elasticsearch');
const deleteByQuery = require('elasticsearch-deletebyquery');
const client = new elasticsearch.Client({
hosts, apiVersion,
plugins: [ deleteByQuery ]
});
Deleting documents with a simple query
client.deleteByQuery({
index: 'myindex',
q: 'test'
}, function (error, response) {
// ...
});
Deleting documents using the Query DSL
client.deleteByQuery({
index: 'posts',
body: {
query: {
term: { published: false }
}
}
}, function (error, response) {
// ...
});
FAQs
elasticsearch deleteByQuery - back for those with the plugin installed
The npm package elasticsearch-deletebyquery receives a total of 446 weekly downloads. As such, elasticsearch-deletebyquery popularity was classified as not popular.
We found that elasticsearch-deletebyquery demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.