Actions145
- Account Actions
- Account Audit Actions
- Billing Entry Actions
- Call Detail Record Actions
- Carrier Actions
- Device Actions
- Device Template Actions
- Email Template Actions
- Feature Code Actions
- File Actions
- Flow Actions
- Flow Template Actions
- LCR Actions
- Mobile SIM Actions
- Number Port Actions
- Phone Number Actions
- Provision Actions
- Report Actions
- Reseller Actions
- SIP Trunk Actions
- Tariff Actions
- Tariff Code Actions
- Tariff Profile Actions
- Tenant Actions
- Tenant Audit Actions
- Transcription Actions
- User Actions
- Voice Actions
- Voice Mail Message Actions
Overview
This node integrates with the TeleFlow API to perform various operations on multiple resource types, including files. Specifically, for the File resource and the Delete operation, the node deletes a file identified by its unique ID from the TeleFlow system.
Common scenarios where this node is beneficial include:
- Automating cleanup of obsolete or temporary files stored in TeleFlow.
- Managing file lifecycle as part of larger workflows that handle data processing or archival.
- Integrating file deletion into business processes triggered by external events.
For example, after processing a file through a workflow, you can use this node to automatically delete the file from TeleFlow to save storage space and maintain data hygiene.
Properties
| Name | Meaning |
|---|---|
| ID | The unique identifier of the file resource to delete. This is required to specify which file to remove. |
| Fields | Optional field-value pairs to include in the request for more specific queries (not typically used for delete). |
Output
The output JSON contains the response from the TeleFlow API after attempting to delete the specified file. Typically, this will be an object indicating success or failure of the deletion operation. The exact structure depends on the API's response but generally confirms whether the file was deleted.
No binary data output is produced by this operation.
Example output JSON might look like:
{
"success": true,
"message": "File deleted successfully"
}
or in case of error:
{
"error": "File not found"
}
Dependencies
- Requires an API key credential for authenticating with the TeleFlow API.
- The node expects the base URL of the TeleFlow API to be configured in the credentials.
- Network connectivity to the TeleFlow API endpoint is necessary.
Troubleshooting
- Missing ID Error: If the "ID" property is not provided, the node throws an error stating that the ID is required. Ensure you provide a valid file ID.
- API Errors: If the file does not exist or cannot be deleted due to permissions, the API may return an error message. Check the error details in the output JSON.
- Authentication Issues: Failure to authenticate with the TeleFlow API will prevent the operation. Verify that the API key credential is correctly set up.
- Continue On Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error details in the output JSON.
Links and References
- TeleFlow API Documentation (Replace with actual URL)
- n8n Documentation on Creating Custom Nodes
- General REST API concepts for DELETE operations: https://restfulapi.net/http-methods/#delete