Delete Delete

yaml
type: "io.kestra.plugin.gcp.gcs.Delete"

Delete a file to a GCS bucket.

Examples

yaml
id: gcp_gcs_delete
namespace: company.team

tasks:
  - id: delete
    type: io.kestra.plugin.gcp.gcs.Delete
    uri: "gs://my_bucket/dir/file.csv"

Properties

errorOnMissing

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

Raise an error if the file is not found

projectId

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

The GCP project ID.

scopes

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

The GCP scopes to be used.

serviceAccount

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

The GCP service account key.

uri

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

The file to delete

Outputs

deleted

  • Type: boolean
  • Required:

If the files was really deleted

uri

  • Type: string
  • Required:
  • Format: uri

The deleted uri

Definitions

Was this page helpful?