Skip to content
Notis

Clear search records when Drive files are deleted

A file that leaves Drive can prompt a cleanup of its search record.

Trigger

File Deleted or Trashed

Triggers when a file is moved to trash or permanently deleted in Drive.

Action

Delete Multiple Records

Tool to delete multiple records from an algolia index. use when you need to remove multiple objects by their ids.

Why this helps

Deleted or trashed documents may remain discoverable in a separate search index.

  • Reduce stale search results for removed files.
  • Automate cleanup after a Drive deletion event.
  • Keep search records closer to the source of truth.

Setup

Build it in a few focused steps.

  • 1Connect Google Drive and Algolia once in the Notis portal.
  • 2Create an automation in Automations, New Automation, and give it a name.
  • 3Tell Notis to delete the Algolia record associated with the Drive file identifier available in the event, and specify the index.
  • 4Pick the Google Drive File Deleted or Trashed trigger and choose where run reports should go.
  • 5Test with one real file that is safe to remove and confirm the intended record is gone.

Questions about this workflow

Does this permanently delete the Drive file?

No. The action is in Algolia and targets the associated search record.

What should I include in the instruction?

Name the Algolia index and tell Notis which event identifier corresponds to the Algolia record identifier.

When this happens · Trigger

Do this · Action

Supported Triggers and Actions

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

Google Drive triggers

Algolia actions

Recurring trigger

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

TriggerScheduled

Add AB Test

Tool to create an ab test comparing search performance between two variants. use to test different index configurations or search parameters and measure impact on click-through and conversion rates.

ActionInstant

Webhook trigger

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

TriggerInstant

Browse Algolia Index

Tool to retrieve all records from an index. use when you need to export or iterate through an entire index dataset.

ActionInstant

Comment Added (Docs/Sheets/Slides)

Triggers when a new comment is added to Google Docs, Sheets, or Slides.

TriggerPolling

Clear Objects

Tool to clear records of an index without affecting settings. use when you need to completely wipe all objects (e.g., after a bulk reindex) while preserving index configuration.

ActionInstant

File Created

Triggers when a new file is created in Google Drive.

TriggerPolling

Clear Rules

Tool to delete all rules in an index. use when you need to wipe all rules before re-creating them. use after confirming no critical rules require retention.

ActionInstant

File Deleted or Trashed

Triggers when a file is moved to trash or permanently deleted in Drive.

TriggerPolling

Clicked Object IDs

Tool to send a click event to algolia to capture clicked items. use immediately after a user click outside of search contexts to report click events.

ActionInstant

File Shared (Permissions Added)

Triggers when new sharing permissions are granted to a file or folder. Uses Drive's `changes.list` endpoint with inline `permissions` in the `fields` mask so each change carries the file's current permission set provider-atomically. We diff that against `seen_permission_keys` to identify newly added grants. Drive page tokens are the primary cursor; if Drive rejects a stored token, the trigger raises `PollingTriggerError` without clearing state rather than silently re-baselining and dropping events. Limitation: truly ephemeral permissions (added and revoked between two polls without any other file modification in between) are not detected. Drive Activity API would catch those but requires an additional OAuth scope and a different payload contract.

TriggerPolling

Clicked Object IDs After Search

Tool to send a click event after a search response. use when you want to report which items a user clicked in search results.

ActionInstant

File Updated

Triggers when a file's metadata or content changes in Google Drive.

TriggerPolling

Converted Object IDs

Tool to send a conversion event for items outside of search context. use when tracking conversions on category pages or external flows unrelated to algolia search.

ActionInstant

Google Drive Changes

Triggers when changes are detected in a Google Drive.

TriggerPolling

Copy Index

Tool to copy the specified index to a new index. use when you need to duplicate an existing index including records, settings, synonyms, and rules after confirming source and destination names.

ActionInstant

Connect any two apps with Notis in the middle.

Google Drive and Algolia, 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 Algolia.