DeleteList
DeleteList
type: "io.kestra.plugin.minio.DeleteList"
Delete a list of keys on a bucket.
Examples
id: minio_delete_objects
namespace: company.team
tasks:
- id: delete_objects
type: io.kestra.plugin.minio.DeleteList
accessKeyId: "<access-key>"
secretKeyId: "<secret-key>"
region: "eu-central-1"
bucket: "my-bucket"
prefix: "sub-dir"
Delete files from an S3-compatible storage — here, Spaces Object Storage from Digital Ocean.
id: s3_compatible_delete_objects
namespace: company.team
tasks:
- id: delete_objects
type: io.kestra.plugin.minio.DeleteList
accessKeyId: "<access-key>"
secretKeyId: "<secret-key>"
endpoint: https://<region>.digitaloceanspaces.com
bucket: "kestra-test-bucket"
prefix: "sub-dir"
Properties
accessKeyId
- Type: string
- Dynamic: ✔️
- Required: ❌
Access Key Id for authentication.
bucket
- Type: string
- Dynamic: ✔️
- Required: ❌
The bucket name.
concurrent
- Type: integer
- Dynamic: ❌
- Required: ❌
- Minimum:
>= 2
Number of concurrent parallels deletion
delimiter
- Type: string
- Dynamic: ✔️
- Required: ❌
A delimiter is a character you use to group keys.
endpoint
- Type: string
- Dynamic: ✔️
- Required: ❌
URL to the MinIO endpoint.
errorOnEmpty
- Type: boolean
- Dynamic: ❌
- Required: ❌
- Default:
false
raise an error if the file is not found
filter
- Type: string
- Dynamic: ❌
- Required: ❌
- Default:
BOTH
- Possible Values:
FILES
DIRECTORY
BOTH
The type of objects to filter: files, directory, or both.
marker
- Type: string
- Dynamic: ✔️
- Required: ❌
Marker is where you want to start listing from.
Start listing after this specified key. Marker can be any key in the bucket.
maxKeys
- Type: integer
- Dynamic: ✔️
- Required: ❌
- Default:
1000
Sets the maximum number of keys returned in the response.
By default, the action returns up to 1,000 key names. The response might contain fewer keys but will never contain more.
prefix
- Type: string
- Dynamic: ✔️
- Required: ❌
Limits the response to keys that begin with the specified prefix.
regexp
- Type: string
- Dynamic: ✔️
- Required: ❌
A regexp to filter on full key.
ex:
regExp: .*
to match all filesregExp: .*2020-01-0.\\.csv
to match files between 01 and 09 of january ending with.csv
region
- Type: string
- Dynamic: ✔️
- Required: ❌
MinIO region with which the SDK should communicate.
secretKeyId
- Type: string
- Dynamic: ✔️
- Required: ❌
Secret Key Id for authentication.
Outputs
count
- Type: integer
- Required: ❌
- Default:
0
The count of blobs deleted
size
- Type: integer
- Required: ❌
- Default:
0
The size of all blobs deleted
Was this page helpful?