Skip to content

When an event is deleted

Sends a notification when a Solspace Calendar Event is deleted.

This trigger fires for both soft deletes (moved to the trash) and hard deletes. Restoring a deleted event fires the separate "When an event is restored" event.

Requires Solspace Calendar

Only available when the Solspace Calendar plugin is installed.

Calendar Filters

Choose which Solspace Calendars should fire this notification. Only events on the selected calendars will trigger it.

Selection is required

Check at least one calendar, or the notification won't fire.

Field Conditions

Field conditions restrict the notification based on the element's content, using Craft's native conditions framework. Build a rule set against the element's attributes and field values, and the notification will be sent only when every rule matches.

Must match all conditions

The condition builder evaluates every rule with AND semantics, so each rule must pass for the notification to be sent.

Twig variables

The object variable (and its event alias) is the deleted Calendar Event.

twig
"{{ event.title }}" was canceled.

Examples

Notify subscribers of a cancellation

twig
The following event has been canceled.

- Title: {{ event.title }}
- Calendar: {{ event.calendar.name }}
- Was scheduled: {{ event.startDate|date('F j, Y g:i a') }}