
Google Cloud DeleteList
CertifiedDelete multiple GCS objects
Google Cloud DeleteList
Certified
Delete multiple GCS objects
Lists objects under a prefix (optional regex) and deletes them in parallel. Can error if no objects match.
yaml
type: io.kestra.plugin.gcp.gcs.DeleteListExamples
yaml
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 *string
Source prefix
gs:// path to list
allVersions booleanstring
Include all versions
If true, includes object versions; default false
concurrent integer
Minimum
>= 2Concurrent deletions
Number of parallel delete workers; optional
errorOnEmpty booleanstring
Default
falseError when empty
If true, throws when no objects were deleted; default false
impersonatedServiceAccount string
The GCP service account to impersonate
listingType string
Default
DIRECTORYPossible Values
RECURSIVEDIRECTORYListing type
DIRECTORY lists only immediate children; RECURSIVE traverses all descendants. Default DIRECTORY.
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
SubTypestring
Default
["https://www.googleapis.com/auth/cloud-platform"]The GCP scopes to be used
serviceAccount string
The GCP service account
Outputs
count integer
Default
0Deleted count
size integer
Default
0Deleted size bytes
Metrics
count counter
Unit
filesNumber of blobs deleted.
size counter
Unit
bytesTotal size of blobs deleted.