Email Cleanup Follows Channel Cleanup

Your team wraps up a project and deletes the Slack channel. Notis automatically moves related emails to trash so your Gmail reflects the change.

Trigger

Channel Message Received

Triggered when a message is posted in a Slack channel (public, private, or multi-party IM). Does NOT match direct messages.

Gmail logo

Action

Move to Trash

Moves an existing, non-deleted email message to the trash for the specified user.

Why this helps

Channels get deleted, but related email clutter remains in your inbox. You manually clean up later or leave a mess.

  • Keep Gmail in sync with active team structure
  • Automatically clean up emails from closed projects
  • Reduce manual cleanup work
  • Maintain a current inbox without stale conversations

Setup

Build it in a few focused steps.

  • 1Connect Slack and Gmail.
  • 2Create an automation: 'When a Slack channel is deleted, move related emails to Gmail trash.'
  • 3Notis will match channel names to email labels or sender addresses.
  • 4Decide whether to trash or label messages (you can also archive to a separate folder).
  • 5Test by archiving or deleting a test channel and checking Gmail.

Questions about this workflow

Will this permanently delete emails?

By default, Notis moves them to trash, where they stay for 30 days. You can recover them if needed. Permanent deletion requires explicit confirmation.

What if I want to keep some emails from the channel?

Exclude those emails by label or sender. Notis can be selective about which ones get trashed.

Does this work for archived channels too?

Yes. You can trigger this on channel archival, deletion, or both.

When this happens · Trigger

Do this · Action

Supported Triggers and Actions

Notis builds workflows that link Slack to Gmail. A trigger fires from one place; an action lands in another.

Slack logo

Slack triggers

Gmail logo

Gmail actions

New Channel Created Trigger

Triggered when a new channel is created in Slack.

TriggerInstant

Modify email labels

Adds and/or removes specified gmail labels for a message; ensure `message id` and all `label ids` are valid (use 'listlabels' for custom label ids).

ActionInstant

Channel Message Received

Triggered when a message is posted in a Slack channel (public, private, or multi-party IM). Does NOT match direct messages.

TriggerInstant

Create email draft

Creates a gmail email draft, supporting to/cc/bcc, subject, plain/html body (ensure `is html=true` for html), attachments, and threading.

ActionInstant

Direct Message Received

Triggered when a new direct message (DM) is sent to a user in Slack. Catches all DMs across all DM channels.

TriggerInstant

Create label

Creates a new label with a unique name in the specified user's gmail account.

ActionInstant

Message Reaction Added

Triggered when a reaction is added to a message in Slack. Supports optional filtering by channel and emoji name.

TriggerInstant

Delete Draft

Permanently deletes a specific gmail draft using its id; ensure the draft exists and the user has necessary permissions for the given `user id`.

ActionInstant

Message Reaction Removed

Triggered when a reaction is removed from a message in Slack. Supports optional filtering by channel and emoji name.

TriggerInstant

Delete message

Permanently deletes a specific email message by its id from a gmail mailbox; for `user id`, use 'me' for the authenticated user or an email address to which the authenticated user has delegated access.

ActionInstant

Reaction Added Trigger

DEPRECATED: use `SLACK_MESSAGE_REACTION_ADDED` instead. Triggered when a reaction is added to a message in Slack.

TriggerInstant

Fetch emails

Fetches a list of email messages from a gmail account, supporting filtering, pagination, and optional full content retrieval.

ActionInstant

Reaction Removed Trigger

DEPRECATED: use `SLACK_MESSAGE_REACTION_REMOVED` instead. Triggered when a reaction is removed from a message.

TriggerInstant

Fetch message by message ID

Fetches a specific email message by its id, provided the `message id` exists and is accessible to the authenticated `user id`.

ActionInstant

New Bot Message Received Trigger

DEPRECATED: use `SLACK_CHANNEL_MESSAGE_RECEIVED` with `is_bot_message=true` instead. Triggered when a new bot message is posted to a Slack channel.

TriggerInstant

Fetch Message by Thread ID

Retrieves messages from a gmail thread using its `thread id`, where the thread must be accessible by the specified `user id`.

ActionInstant

Connect any two apps with Notis in the middle.

Not just Slack and Gmail. Any combination from 985+ integrations.

When this happens · Trigger

Do this · Action

Save your first hour today.

7 days free trial with 20$ free usage included.
No card. Works with personal or business Gmail.