Skip to content
Notis

Clean up a sandbox when its session is canceled

Canceled plans should not leave a dedicated sandbox running. Have Notis connect the cancellation to the environment reserved for that event.

Trigger

Event Canceled or Deleted

Triggers when a Google Calendar event is cancelled or deleted. Returns minimal data: event_id, summary (if available), and cancellation timestamp.

Action

Delete Sandbox

Tool to terminate and permanently delete a running E2B sandbox instance. Use when you need to kill a sandbox that is no longer needed. Once terminated, the sandbox cannot be resumed.

Why this helps

A canceled session can leave its sandbox running because cleanup is easy to overlook.

  • Prompt cleanup when a session is canceled or deleted.
  • Reduce unused running sandboxes.
  • Tie the cleanup decision to the original event.

Setup

Build it in a few focused steps.

  • 1Connect Google Calendar and E2B once in the Notis portal.
  • 2Create an automation in Automations, New Automation, and name it.
  • 3Tell Notis which canceled events have dedicated sandboxes and how to identify them before deletion.
  • 4Pick Event Canceled or Deleted as the trigger and choose where run reports should go.
  • 5Test with one real cancellation and a sandbox that is safe to delete.

Questions about this workflow

Can a deleted sandbox be recovered?

No. The E2B Delete Sandbox action permanently terminates the running sandbox, and it cannot be resumed.

What details does the cancellation trigger provide?

It returns minimal data: event ID, summary if available, and cancellation timestamp.

Should every cancellation delete a sandbox?

Only if your instruction can identify a sandbox dedicated to that event and you intend to permanently delete it.

When this happens · Trigger

Do this · Action

Supported Triggers and Actions

Notis builds workflows that link Google Calendar to E2b. A trigger fires from one place; an action lands in another.

Google Calendar triggers

E2b actions

Recurring trigger

Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.

TriggerScheduled

Connect to Sandbox

Tool to connect to an existing E2B sandbox and retrieve its details. Use when you need to reconnect to a sandbox from different environments or resume a paused sandbox. The TTL is extended upon connection.

ActionInstant

Webhook trigger

Notis starts this workflow when an external tool or custom backend sends an HTTP request.

TriggerInstant

Create Template

Tool to create a new E2B template with specified configuration. Use when you need to define a new sandbox template that can be used to spawn sandbox environments.

ActionInstant

Attendee Response Changed

Polling trigger that fires when any attendee's RSVP changes to accepted, declined, or tentative. Returns attendee info and current status.

TriggerPolling

Create Webhook

Tool to register a new webhook to receive sandbox lifecycle events for the team. Use when you need to set up notifications for sandbox lifecycle events such as creation, updates, or termination.

ActionInstant

Event Canceled or Deleted

Triggers when a Google Calendar event is cancelled or deleted. Returns minimal data: event_id, summary (if available), and cancellation timestamp.

TriggerPolling

Delete Sandbox

Tool to terminate and permanently delete a running E2B sandbox instance. Use when you need to kill a sandbox that is no longer needed. Once terminated, the sandbox cannot be resumed.

ActionInstant

Event Starting Soon

Triggers when a calendar event is within a configured number of minutes from starting. Returns event details, time remaining, attendees, and join links when available.

TriggerPolling

Delete Webhook

Tool to unregister a webhook and stop receiving lifecycle events. Use when you need to remove a webhook that is no longer needed or to clean up webhook registrations.

ActionInstant

Calendar Event Changes

**SOON TO BE DEPRECATED** - Use Calendar Event Sync (polling trigger) instead. Real-time webhook trigger for calendar event changes. Returns event metadata only. For full event data, use Calendar Event Sync (polling trigger).

TriggerInstant

Check API Health

Tool to check the health status of the E2B API. Use when you need to verify that the API service is operational and accessible.

ActionInstant

Event Created

Polling trigger that fires when a new calendar event is created. Returns event ID, summary, start/end times, and organizer info.

TriggerPolling

Get Sandbox

Tool to retrieve detailed information about a specific sandbox by its ID. Use when you need to check sandbox status, metadata, or configuration details.

ActionInstant

Calendar Event Sync

Polling trigger that returns full event data including details, attendees, and metadata. For real-time notifications with basic info, use Calendar Event Changes (webhook).

TriggerPolling

Get Sandbox Logs

Tool to retrieve logs from a specific E2B sandbox instance. Use when you need to debug or monitor sandbox execution by viewing its console output and system logs.

ActionInstant

Connect any two apps with Notis in the middle.

Google Calendar and E2b, or any other combination from 1,000+ integrations.

When this happens · Trigger

Do this · Action

Save your first hour today.

7-day trial of any paid plan, with 20$ of usage included.
No card. Works with personal or business E2b.