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.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
file_id The Drive file id. | string | Yes | — | — | — |
permanent Delete outright instead of binning it (not recoverable). | boolean | No | false | — | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"permanent": false
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
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
}Related Google Drive nodes
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.