Actions14
- File/Folder Actions
- File Actions
- Folder Actions
- Share Actions
File → Delete File
AI-generatedOverview
This node operation deletes a specified file from Twake Drive. It supports selecting the file either via a dropdown menu browsing through folders or by manually entering the file ID. This operation is useful for automating file management tasks such as cleaning up unused or outdated files in Twake Drive.
Use Case Examples
- Automatically delete files from a specific folder after processing them.
- Remove temporary files created during a workflow to save storage space.
Properties
| Name | Meaning |
|---|---|
| File Select Mode | Determines how the file to delete is selected, either by browsing a dropdown or by manually entering the file ID. |
| Target Folder (Source) Name or ID | The folder containing the file to delete. Leave empty to select from the root folder. This is used only when file select mode is 'Dropdown (Browse)'. |
| File (in This Folder) Name or ID | The file to delete selected from the dropdown list of files in the specified folder. Used only when file select mode is 'Dropdown (Browse)'. |
| File ID (Manual) | The ID of the file to delete, specified manually. Used only when file select mode is 'By ID (Manual)'. |
Output
JSON
id- The unique identifier of the deleted file.name- The name of the deleted file.status- The status or result of the delete operation, e.g., success confirmation.
Dependencies
- Requires Twake Drive OAuth2 API credentials for authentication.
Troubleshooting
- Common issues include invalid file ID or insufficient permissions to delete the file. Ensure the file ID is correct and the OAuth2 credentials have delete permissions.
- Error messages may indicate file not found or access denied. Verify the file exists and the credentials are authorized to perform deletions.