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
This node is designed to delete an item from a specified collection in a Directus v1-compatible API. It is useful when you need to programmatically remove records from your Directus-managed data collections within an n8n workflow. For example, you might use this node to automatically clean up outdated articles or remove user-submitted content based on certain criteria.
Properties
| Name | Meaning |
|---|---|
| ID | Unique ID of the file object. This identifies the specific item to be deleted. |
| Collection Name | Unique name of the parent collection. Select the collection from which to delete items. |
Output
- The output will contain a JSON field indicating the result of the deletion operation. Typically, this may include confirmation of deletion or details about the deleted item (depending on the API response).
- No binary data is produced by this operation.
Dependencies
- Requires access to a Directus v1-compatible API.
- May require authentication credentials or API keys configured in n8n, depending on your Directus setup.
Troubleshooting
- Invalid ID or Collection Name: If the provided ID or collection name does not exist, the node may return an error indicating that the item was not found.
- Permission Denied: If the API credentials do not have permission to delete items, you may receive an authorization error.
- Network Issues: Connectivity problems with the Directus API endpoint can cause request failures.