Actions111
- Item Actions
- Webhook Actions
- Collection Actions
- File Actions
- Activity Actions
- Asset Actions
- Authentication Actions
- Extension Actions
- Field Actions
- Folder Actions
- Permission Actions
- Preset Actions
- Relation Actions
- Revision Actions
- Role Actions
- Setting Actions
- User Actions
- Utility Actions
Overview
The "Delete Multiple" operation for the "Item" resource in this custom n8n node allows users to delete multiple items from a specified collection in bulk. This is particularly useful when you need to remove several records at once, such as cleaning up outdated entries or managing data migrations. For example, you might use this node to delete a list of article IDs from an "articles" collection in your database.
Properties
| Name | Meaning |
|---|---|
| Collection Name | Unique name of the parent collection. Options are dynamically loaded (e.g., "articles"). |
| Data (JSON) | An array of item primary keys to be deleted (e.g., [15, 16, 21]). |
Output
- The output will contain a
jsonfield summarizing the result of the deletion operation. The exact structure depends on the underlying API response, but typically it may include information about which items were deleted and any errors encountered. - No binary data is produced by this operation.
Dependencies
- May require connection details or credentials for the backend service (such as Directus).
- The node relies on external methods and router logic, so ensure all dependencies are correctly installed within your n8n environment.
Troubleshooting
- Invalid Collection Name: If the provided collection name does not exist, the operation may fail with an error indicating the collection was not found.
- Malformed Data (JSON): If the "Data (JSON)" property is not a valid JSON array of primary keys, the node may throw a parsing error. Ensure the input is a properly formatted array (e.g.,
[1,2,3]). - Permission Issues: Lack of proper permissions to delete items in the specified collection can result in authorization errors.
Links and References
- n8n Documentation
- Directus Documentation (if applicable to your backend)