Overview
This n8n node allows you to interact with the Caspio API, specifically for managing files within Caspio folders. The File → Delete operation enables you to delete files from a specified folder in your Caspio account. This is useful for automating file management tasks, such as cleaning up outdated documents or removing files after processing.
Practical examples:
- Automatically deleting temporary files from a Caspio folder after they have been processed.
- Removing sensitive files from Caspio storage as part of a data retention policy.
- Integrating with other workflows that require file cleanup in Caspio.
Properties
| Name | Type | Meaning |
|---|---|---|
| Folder Id | String | Id of the Caspio folder from which the file(s) will be deleted. |
| Binary Property | String | Name of the binary property containing the file data (not directly used in Delete, but present in resource). |
Output
The output consists of a JSON object reflecting the result of the delete operation. The structure typically includes information about the deletion status or any response returned by the Caspio API. Example output:
{
"Result": [
// Details about the deleted file(s), if provided by the API
]
}
If an error occurs and "Continue On Fail" is enabled, the output will include an error message:
{
"error": "Error message here"
}
Note: This operation does not output binary data.
Dependencies
- External Service: Requires access to the Caspio API.
- Credentials: You must configure Caspio credentials in n8n.
- Environment Variables: None required by default, but API credentials must be set up in n8n's credential manager.
Troubleshooting
Common Issues:
- Invalid Folder Id: If the provided Folder Id is incorrect or does not exist, the node may return an error from the Caspio API.
- Missing Credentials: If Caspio credentials are not configured, the node will fail to authenticate.
- API Limitations: Deleting files that are locked or in use may result in errors from the Caspio API.
Common Error Messages:
"No binary data exists on item!"– Not relevant for Delete, but may appear if misconfigured."No binary data property \"...\" does not exists on item!"– Not relevant for Delete, but may appear if Binary Property is referenced incorrectly.- Errors from Caspio API (e.g., permission denied, not found) will be passed through in the
errorfield if "Continue On Fail" is enabled.
How to resolve:
- Double-check the Folder Id.
- Ensure Caspio credentials are correctly set up in n8n.
- Review Caspio API documentation for any specific requirements or limitations regarding file deletion.