DeleteList DeleteList

type: "io.kestra.plugin.gcp.gcs.DeleteList"

Delete all file to a GCS bucket.

# Examples

id: "delete_list"
type: "io.kestra.plugin.gcp.gcs.DeleteList"
from: "gs://my_bucket/dir/"

# Properties

# allVersions

  • Type: boolean
  • Dynamic: ✔️
  • Required:

If set to true, lists all versions of a blob. The default is false.

# concurrent

  • Type: integer
  • Dynamic:
  • Required:
  • Minimum: >= 2

Number of concurrent parrallels deletion

# errorOnEmpty

  • Type: boolean
  • Dynamic: ✔️
  • Required:
  • Default: false

raise an error if the file is not found

# from

  • Type: string
  • Dynamic:
  • Required: ✔️

The directory to list

# listingType

  • Type: ListingType
  • Dynamic:
  • Required:
  • Default: DIRECTORY

The listing type you want (like directory or recursive)

if DIRECTORY, will only list objects in the specified directory
if RECURSIVE, will list objects in the specified directory recursively
Default value is DIRECTORY
When using RECURSIVE value, be carefull to move your files to a location not in the from scope

# projectId

  • Type: string
  • Dynamic:
  • Required:

The GCP project id

# regExp

  • Type: string
  • Dynamic:
  • Required:

A regexp to filter on full path

ex:
regExp: .* to match all files
regExp: .*2020-01-0.\\.csv to match files between 01 and 09 of january ending with .csv

# scopes

  • Type: array
  • SubType: string
  • Dynamic:
  • Required:
  • Default: [https://www.googleapis.com/auth/cloud-platform]

The GCP scopes to used

# serviceAccount

  • Type: string
  • Dynamic:
  • Required:

The GCP service account key

# Outputs

# count

  • Type: integer
  • Default: 0

The count of blobs deleted

# size

  • Type: integer
  • Default: 0

The size of all blobs deleted

# Definitions