Delete File
AI-generatedOverview
This node operation deletes an XLSX file specified by the user. It is useful in workflows where you need to programmatically remove Excel files, for example, to clean up temporary files or manage storage space. The user provides the file path, and the node attempts to delete the file if it exists, returning success or failure messages accordingly.
Use Case Examples
- Deleting a temporary Excel report after processing is complete.
- Removing outdated or unnecessary Excel files from a specific directory.
Properties
| Name | Meaning |
|---|---|
| File (.xlsx) | Path to the XLSX file to be deleted. If the path is not absolute, it is considered relative to /data/sheet-manager. Defaults to /tmp/data.xlsx. |
Output
JSON
success- Boolean indicating whether the file was successfully deleted.message- Informational message about the deletion result, including error messages if the file does not exist or deletion fails.
Troubleshooting
- If the file does not exist, the node returns a failure message indicating the file cannot be deleted.
- If the node cannot delete the file due to permission issues, it throws an error advising to check folder permissions for /data/sheet-manager.