Doel
Delete a tenant-scoped GCS object from inside an Element.
Elements runtime reference / Tenant GCS files
deleteGcsFileDelete a tenant-scoped GCS object from inside an Element.
deleteGcsFile(path, bucket=None, prefix=None, ignoreMissing=False)
Delete a tenant-scoped GCS object from inside an Element.
delete_gcs_filegcs.deletegcs.delete_fileUse these fields as the Python call arguments or keyword payload for this helper.
{
"path": "exports/old-report.json",
"ignoreMissing": true
}
| Field | Description |
|---|---|
path | Relative path, filestore/{tenantId}-prefixed object path, or gs:// URI inside the current tenant filestore folder. |
bucket | Optional bucket override; must match the configured file artifact/output bucket. |
prefix | Optional extra prefix under filestore/{tenantId}/ when path is relative. |
ignoreMissing | When true, missing objects return deleted=False/missing=True instead of an error. |
{
"deleted": true,
"missing": false,
"gcsUri": "gs://dashview-cache/filestore/tenant/exports/old-report.json",
"relativePath": "exports/old-report.json"
}
def run():
result = gcs.delete("exports/old-report.json", ignoreMissing=True)
return {"deleted": result["deleted"], "missing": result.get("missing", False)}