Actions10
Overview
The Ninox node for n8n allows you to interact with the Ninox database platform. Specifically, the Delete Attached File operation enables you to remove a file attachment from a specific record within a table in your Ninox database. This is useful when you need to automate the cleanup of outdated or incorrect attachments, enforce data retention policies, or manage files programmatically as part of larger business workflows.
Practical examples:
- Automatically delete sensitive documents after processing.
- Remove obsolete attachments from customer records.
- Clean up files as part of a data archival workflow.
Properties
| Name | Type | Meaning |
|---|---|---|
| Team Name or ID | options | The ID of the team to access. Choose from a list or specify an ID using an expression. Required to identify the correct workspace in Ninox. |
| Database Name or ID | options | The ID of the database to access. Choose from a list or specify an ID using an expression. Required to select the target database within the team. |
| Table Name or ID | options | The ID of the table to access. Choose from a list or specify an ID using an expression. Required to specify which table contains the record. |
| Record ID | string | ID of the record with the attachments. Identifies the specific record from which the file will be deleted. |
| File Name | string | The file ID (name) of the attachment to delete. Specifies which file attached to the record should be removed. |
Output
The output is a JSON object indicating the success of the operation:
{
"success": true
}
- success: Boolean value (
true) confirming that the file was successfully deleted.
Dependencies
- External Service: Requires access to the Ninox API.
- API Key/Credentials: You must configure the
ninoxApicredential in n8n with appropriate permissions to perform file deletions. - n8n Configuration: No special environment variables are required beyond standard credential setup.
Troubleshooting
Common Issues:
- Invalid IDs: If any of the Team, Database, Table, Record, or File IDs are incorrect or missing, the operation will fail.
- Permission Errors: Insufficient permissions in Ninox may prevent file deletion.
- File Not Found: Attempting to delete a file that does not exist on the specified record will result in an error.
Error Messages and Resolutions:
- "Record not found": Ensure the Record ID is correct and exists in the specified table.
- "File not found": Double-check the File Name/ID; it must match exactly as stored in Ninox.
- "Unauthorized" or "Forbidden": Verify that your Ninox API credentials have sufficient rights to delete files.