
NATS Delete
CertifiedDelete keys from NATS Key/Value bucket
NATS Delete
Delete keys from NATS Key/Value bucket
Removes the latest value for each provided key and writes a delete marker. Bucket name and keys are rendered, and the bucket must already exist.
type: io.kestra.plugin.nats.kv.DeleteExamples
id: nats_kv_delete
namespace: company.team
tasks:
- id: delete
type: io.kestra.plugin.nats.kv.Delete
url: nats://localhost:4222
username: nats_user
password: "{{ secret('NATS_PASSWORD') }}"
bucketName: my_bucket
keys:
- key1
- key2
Properties
bucketName *Requiredstring
1Bucket name
Rendered bucket identifier that must already exist.
keys *Requiredarray
Keys to delete
List of keys rendered before deletion; each delete creates a tombstone and increments the revision.
url *Requiredstring
1URL to connect to NATS server
The format is (nats://)server_url: port. You can also provide a connection token like so: nats://token@server_url: port
creds string
Credentials files authentification
password string
Plaintext authentication password
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
token string
Token authentification
username string
Plaintext authentication username
Outputs
deletedCount integer
0Number of keys deleted