Directus (denkhaus) icon

Directus (denkhaus)

Consume Directus API

Overview

This node is designed to delete a specific "Preset" in a Directus v1 environment. It is useful when you need to programmatically remove a preset configuration from your Directus instance, such as cleaning up unused presets or automating preset management within workflows.

Practical Example:
You might use this node in an n8n workflow to automatically delete a preset after it has been replaced or is no longer needed, ensuring your Directus instance remains organized and up-to-date.

Properties

Name Meaning
ID Primary key of the preset. This is a required string value that uniquely identifies which preset will be deleted (e.g., "39").

Output

  • The output will typically contain a JSON object reflecting the result of the delete operation. This may include confirmation of deletion or details about the deleted preset.
  • No binary data is produced by this operation.

Dependencies

  • Requires access to a Directus v1 API endpoint.
  • May require authentication credentials (such as an API key or token) configured in n8n for the Directus instance.

Troubleshooting

  • Missing or Invalid ID: If the "ID" property is missing or does not correspond to an existing preset, the node may throw an error indicating that the preset could not be found or deleted. Ensure the ID is correct and exists in your Directus instance.
  • Authentication Errors: If the node is not properly authenticated with Directus, you may receive errors related to authorization. Check your API credentials and permissions.
  • Network Issues: Connectivity problems between n8n and the Directus server can cause failures. Verify network access and endpoint URLs.

Links and References

Discussion