Trash File

google_drive.trash_file
ActionFiles & storageconnection required

Calls Drive files.update {trashed:true}, or files.delete when permanent. Needs a read/write Drive scope (drive or drive.file) on the connection.

Move a Drive file to the bin, or delete it permanently.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Google Drive
Secret shape
{"client_id", "client_secret", "refresh_token"}
Config it needs
token_uri
Resolved by
config.connection_id, else node.connection_id

Configuration

2 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
file_id
The Drive file id.
stringYes———
permanent
Delete outright instead of binning it (not recoverable).
booleanNofalse——

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "permanent": false
}

Output

One shape.

result

FieldTypeExample
id
The file that was binned.
string—
trashed
Always true on success.
boolean—
deleted
True only for a permanent delete.
boolean—
already_gone
True when a permanent delete found nothing left to delete.
boolean—
name
string—
parents
array—
{
  "already_gone": false,
  "deleted": false,
  "id": "",
  "name": "",
  "parents": [],
  "trashed": false
}

See Trash File run in a workflow.

In a technical demo we add the Google Drive connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.