CalDav Calendar

Work with CalDav/CardDav servers (Baikal, SabreDAV, etc)

Actions4

Overview

This node interacts with CalDav/CardDav servers to manage calendar events and calendars. Specifically, for the Event - Delete operation, it deletes an event from a specified calendar on a CalDav server by using the event's unique identifier.

Common scenarios include:

  • Removing outdated or canceled events from a shared calendar.
  • Automating cleanup of events after they have passed or are no longer relevant.
  • Integrating with other systems to synchronize event deletions.

For example, you might use this node to delete a meeting event from your team calendar when a meeting is canceled, ensuring all participants see the updated schedule.

Properties

Name Meaning
Calendar URL URL of the calendar (DAV collection) from which the event will be deleted.
Event ID Unique identifier of the event to delete within the specified calendar.

Output

The output JSON contains the response from the CalDav server after attempting to delete the event. Typically, this will confirm whether the deletion was successful or provide error details if it failed.

No binary data is output by this operation.

Example output structure:

{
  "status": "success",
  "message": "Event deleted successfully"
}

or in case of failure:

{
  "error": "Event not found or could not be deleted"
}

Dependencies

  • Requires connection credentials to a CalDav/CardDav server supporting basic authentication.
  • The node depends on an API key credential configured in n8n for authenticating requests to the CalDav server.
  • The calendar URL must point to a valid DAV collection on the server.
  • The node uses internal helper functions to interact with the CalDav server API.

Troubleshooting

  • Common issues:

    • Incorrect or expired credentials leading to authentication failures.
    • Invalid or malformed Calendar URL causing inability to locate the calendar.
    • Non-existent Event ID resulting in errors when trying to delete.
    • Network connectivity problems preventing communication with the CalDav server.
  • Error messages and resolutions:

    • "No credentials found": Ensure that the required API authentication token is properly set up in n8n credentials.
    • "Event not found" or similar: Verify that the Event ID is correct and exists in the specified calendar.
    • "Failed to delete event": Check network connectivity and permissions on the CalDav server.
    • If the node returns an error object in the output JSON, enable "Continue On Fail" to handle errors gracefully in workflows.

Links and References

Discussion