Help Centre › Functions & Formulas
This article describes the RPA Google Drive functionality to trash a file.
For a full list of available functions, please read Google Drive functions.
Description
The Google Drive Trash file function moves a file to trash. This is reversible – use the Restore function to undo.
Setting it up
To use the Google Drive Trash file function, follow these instructions:
{{popups:rpas/add:action=google-workspace-drive-trash}}
Once on a process map:
- Navigate to the process where you would like to add the Google Drive Trash file function
- Click on the green button's drop-down (right side of the green button labelled "Process")
- On the menu that appears, click on the "+ Activity" item
- From here you can select the Google Drive Trash file option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| File ID | Yes | Text | - | The file ID to move to trash |
Output variables
This action does not produce output variables.
Errors
| Error | Description |
|---|---|
| File not found | The specified file ID does not exist |
| Permission denied | Insufficient permissions to trash the file |
Tips
- Trashed files are automatically deleted after 30 days
- Use Restore from trash to undo
- For permanent deletion, use Delete file