Actions109
- Activity Actions
- Assets Actions
- Authentication Actions
- Collections Actions
- Extensions Actions
- Fields Actions
- Files Actions
- Folders Actions
- Items Actions
- Permissions Actions
- Presets Actions
- Relations Actions
- Revisions Actions
- Roles Actions
- Settings Actions
- Users Actions
- Utilities Actions
- Webhooks Actions
Overview
This node integrates with the Directus API, a headless CMS and data platform. Specifically, for the Presets resource with the Delete Multiple operation, it allows users to delete multiple preset records in one request by specifying an array of primary keys.
This operation is useful when you want to clean up or remove several presets at once without making individual delete calls for each preset. For example, if you have a batch of outdated or unused presets identified by their IDs, you can delete them all efficiently in a single step.
Properties
| Name | Meaning |
|---|---|
| Keys (JSON) | An array of preset primary keys to delete. Example: [15, 251, 810]. This property is required. |
Output
The output JSON contains the response from the Directus API after attempting to delete the specified presets. Typically, this will include information about the success or failure of the deletion operation, such as the number of records deleted or any error messages returned by the API.
No binary data output is produced by this operation.
Dependencies
- Requires a valid connection to the Directus API via an API key credential configured in n8n.
- The node uses the Directus REST API endpoint for presets (
DELETE /presets) with a JSON body containing the keys to delete. - No additional external dependencies are needed beyond the Directus API access.
Troubleshooting
- Invalid Keys Format: Ensure that the "Keys (JSON)" input is a valid JSON array of numeric or string IDs. Malformed JSON or incorrect types will cause errors.
- Authorization Errors: If the API key or credentials are invalid or lack permissions to delete presets, the API will return authorization errors.
- Non-existent Keys: Attempting to delete keys that do not exist may result in partial success or errors depending on the API behavior.
- API Rate Limits: Deleting many presets at once might hit API rate limits; consider batching if necessary.
- Error Messages: Common error messages will come directly from the Directus API and typically indicate issues like invalid input, permission denied, or server errors. Review the error message in the node output for guidance.