Document Delete
The Document Delete component allows you to delete documents from the Content Store.
You can filter which documents are deleted based on the query in the configuration.
Handlebars
This component lets you use Handlebars templates. More information about Handlebars can be found in this section
Configuration
A MongoDB connection string.
Example: mongodb://<username>:<password>@localhost:27017/<databaseName>
Here <databaseName>
is the database to store content.
Whether or not to use TLS in case your mongoDB requires TLS.
Allow Invalid CertificatesChecking this will disable certificate validation. Warning: specifying this option in a production environment makes your application insecure and potentially vulnerable to expired certificates and to foreign processes posing as valid client instances.
Certificate Authority FileOne or more certificate authorities to trust when making a TLS connection. In order to access the local filesystem, the XILL4_WORKDIRS
environment variable must be set to the path of the directory to be accessed.
Example: .\ca.pem
A valid Mongo query that can be passed in deleteMany()
. Example:{"kind":"CONTAINER"}
You can use Handlebars to create dynamic queries. For nested keys, you can use the so-called dot-notation.
Inputs | Outputs
//query in config:
{ "kind":"{{kind}}" }
//incoming message:
{
"_id": "135176441e008d9d0c5ba0cee61783ce",
"kind": "CONTAINER"
}