File → Delete
AI-generatedSummary
Delete a file in Google Drive by specifying its file ID and using either refresh token or bearer token authentication.
Inputs
- Authentication — Choose authentication method: Refresh Token with auto-refresh or manual Bearer Token.
- File ID (required) — The ID of the file to delete from Google Drive.
- Custom Refresh Token — Optionally override the refresh token from credentials when using refresh token authentication.
Output shape
a single JSON object containing a success boolean and the deleted file's ID
Output contains { success: true, fileId: '
' } if deletion succeeds. Errors are thrown unless the node is set to continue on failure.
Examples
Example 1: Delete a Google Drive file with auto-refresh authentication
Set Authentication to 'Refresh Token', enter the File ID to delete, optionally provide a custom refresh token, and execute the node.