
Google Cloud DeleteList
CertifiedDelete multiple GCS objects
Google Cloud DeleteList
Delete multiple GCS objects
Lists objects under a prefix (optional regex) and deletes them in parallel. Can error if no objects match.
type: io.kestra.plugin.gcp.gcs.DeleteListExamples
id: gcp_gcs_delete_list
namespace: company.team
tasks:
- id: delete_list
type: io.kestra.plugin.gcp.gcs.DeleteList
from: "gs://my_bucket/dir/"
Properties
from *Requiredstring
Source prefix
gs:// path to list
allVersions booleanstring
Include all versions
If true, includes object versions; default false
concurrent Non-dynamicinteger
>= 2Concurrent deletions
Number of parallel delete workers; optional
errorOnEmpty booleanstring
falseError when empty
If true, throws when no objects were deleted; default false
impersonatedServiceAccount string
The GCP service account to impersonate
listingType string
DIRECTORYRECURSIVEDIRECTORYListing type
DIRECTORY lists only immediate children; RECURSIVE traverses all descendants. Default DIRECTORY.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
projectId string
The GCP project ID
regExp string
Regex filter
Optional regex applied to full object path (e.g., .*2020-01-0.\.csv)
scopes array
["https://www.googleapis.com/auth/cloud-platform"]The GCP scopes to be used
serviceAccount string
The GCP service account
Outputs
count integer
0Deleted count
size integer
0Deleted size bytes
Metrics
count counter
filesNumber of blobs deleted.
size counter
bytesTotal size of blobs deleted.