Skip to content
Notis

Clean up related Appdrag rows when files are deleted

If your process removes records when source files disappear, connect Drive deletion events to a configured Appdrag Visual SQL Delete.

Trigger

File Deleted or Trashed

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

Action

Visual SQL Delete

Tool to delete rows via a Visual SQL Delete function. Use when you need to delete records from a Cloud DB table using a Visual SQL Delete function.

Why this helps

Removed files can leave obsolete rows behind, creating clutter in the records your team relies on.

  • React to files moved to trash or permanently deleted.
  • Reduce stale records in a related Appdrag table.
  • Use a configured Visual SQL Delete function for cleanup.

Setup

Build it in a few focused steps.

  • 1Connect Google Drive and Appdrag once in the Notis portal.
  • 2Create an automation in Automations, New Automation, and give it a name and prompt.
  • 3Instruct Notis to call the Appdrag Visual SQL Delete function for the row identified by available file details.
  • 4Pick the File Deleted or Trashed trigger and choose where run reports should go.
  • 5Test with one real file and verify the intended row is removed.

Questions about this workflow

Will this delete a row automatically in every setup?

Only if the configured Visual SQL Delete function can identify the intended row from the details available to the automation.

Does this restore or permanently delete the Drive file?

No. The Google Drive event reports that a file was moved to trash or permanently deleted. The action here targets an Appdrag database row.

When this happens · Trigger

Do this · Action

Supported Triggers and Actions

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

Google Drive triggers

Appdrag actions

Recurring trigger

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

TriggerScheduled

Execute Cloud Backend function via DELETE

Tool to execute a Cloud Backend API function via DELETE on the default environment. Use when you need to call a function with DELETE parameters and optional APIKey.

ActionInstant

Webhook trigger

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

TriggerInstant

Execute Preprod Function (DELETE)

Tool to execute the pre-production version of a Cloud Backend API function via DELETE. Use when you need to test or validate delete operations in the preprod environment before production deployment.

ActionInstant

Comment Added (Docs/Sheets/Slides)

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

TriggerPolling

Execute PROD API Function (GET)

Tool to execute a production Cloud Backend API function via GET. Includes robust URL handling and fallbacks to accommodate management base URLs.

ActionInstant

File Created

Triggers when a new file is created in Google Drive.

TriggerPolling

Execute Dev Function (PATCH)

Tool to execute the development version of a Cloud Backend API function via PATCH. Use after deploying or updating your function to the dev environment.

ActionInstant

File Deleted or Trashed

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

TriggerPolling

Execute Cloud Backend function via POST

Tool to execute a Cloud Backend API function via POST on the default environment. Use when you need to call a function with POST parameters and optional APIKey.

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

Execute Function POST (Preprod Env)

Tool to execute a Cloud Backend API function via POST on the preprod environment. Use when you need to test a function in the preprod environment before releasing to production. Include apiKey if your function requires APIKey security.

ActionInstant

File Updated

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

TriggerPolling

Execute Cloud Backend function via PUT (default)

Tool to execute a Cloud Backend API function via PUT on the default environment. Use when you need to call a function with PUT parameters and optional APIKey.

ActionInstant

Google Drive Changes

Triggers when changes are detected in a Google Drive.

TriggerPolling

Execute Cloud Backend function via PUT (preprod)

Tool to execute a Cloud Backend API function via PUT on the preprod environment. Use when you need to call a function with PUT parameters and optional APIKey in preprod.

ActionInstant

Connect any two apps with Notis in the middle.

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