Directus (denkhaus) icon

Directus (denkhaus)

Consume Directus API

Overview

This node is designed to delete an Activity resource by its unique identifier. It is useful in scenarios where you need to programmatically remove an activity record from a system, such as cleaning up outdated activities, automating data management workflows, or integrating with other systems that require deletion of activity records.

Practical examples:

  • Automatically deleting completed or obsolete activities after a certain period.
  • Removing test or duplicate activity entries during data maintenance.
  • Integrating with external triggers to delete activities based on business logic.

Properties

Name Type Meaning
ID Number Unique identifier for the object to delete.

Output

The output will be a JSON object indicating the result of the delete operation. The exact structure may depend on the underlying API or service, but typically it would include confirmation of deletion or details about the deleted activity. If the operation fails, an error message will be included in the output.

Dependencies

  • May require authentication credentials or API keys depending on the backend service configuration.
  • No additional n8n configuration is specified in the provided code.

Troubleshooting

Common issues:

  • Invalid ID: Providing an ID that does not exist will likely result in an error indicating that the activity was not found.
  • Missing Required Property: Omitting the required "ID" property will cause the node to throw an error.
  • Permission Denied: If the credentials used do not have permission to delete activities, an authorization error will occur.

Common error messages and resolutions:

  • "Activity not found": Ensure the ID exists and is correct.
  • "Missing required property: ID": Provide a valid ID value.
  • "Unauthorized": Check your API credentials and permissions.

Links and References

  • n8n Documentation
  • (If applicable) Refer to your backend service's API documentation for more details on the delete operation.

Discussion