Clean up Dub links for deleted Drive files
When a file is no longer in Drive, let Notis remove its corresponding Dub link from the active collection.
Trigger
File Deleted or Trashed
Triggers when a file is moved to trash or permanently deleted in Drive.
Action
Bulk Delete Links
Tool to delete multiple short links in bulk from Dub. Use when you need to remove multiple links at once. Maximum of 100 link IDs per request. Non-existing IDs are silently ignored.
Why this helps
Deleted files can leave behind short links that look usable but lead nowhere helpful.
- Clear links associated with trashed files
- Reduce confusing dead ends in active link lists
- Automate a cleanup task that is easy to forget
Setup
Build it in a few focused steps.
- 1Connect Google Drive and Dub once in the Notis portal.
- 2Create and name an automation in Notis.
- 3In one instruction, tell Notis how to find the associated Dub link and delete it when its Drive file is trashed.
- 4Choose the File Deleted or Trashed trigger and select a report destination.
- 5Test with one real file and verify the intended Dub link is removed.
Questions about this workflow
Does this workflow delete files from Drive?
No. Drive is the trigger source. The workflow removes the associated Dub link when the Drive file is trashed or deleted.
How does it find the right Dub link?
Your instruction must describe how Notis can identify the associated link, such as a known key or identifier. Supply a matching rule if one is not available in the event.
Can it remove multiple links?
The Bulk Delete Links action can remove multiple link IDs, up to 100 per request. The workflow should only identify links associated with the deleted file.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Google Drive to Dub. A trigger fires from one place; an action lands in another.
Google Drive triggers
Dub actions
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
Bulk Delete Links
Tool to delete multiple short links in bulk from Dub. Use when you need to remove multiple links at once. Maximum of 100 link IDs per request. Non-existing IDs are silently ignored.
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Bulk Update Links
Tool to update multiple short links in bulk. Use when you need to apply the same updates to multiple links at once by specifying link IDs or external IDs.
Comment Added (Docs/Sheets/Slides)
Triggers when a new comment is added to Google Docs, Sheets, or Slides.
Create Domain
Tool to add a domain to a Dub workspace. Use when you need to create a new domain for shortening links. The domain must be verified before it can be used for link shortening.
File Created
Triggers when a new file is created in Google Drive.
Create Tag
Tool to create a new tag in Dub. Use when you need to organize links by creating custom tags. Tags help categorize and filter links for better organization.
File Deleted or Trashed
Triggers when a file is moved to trash or permanently deleted in Drive.
Delete Domain
Tool to delete a domain from your Dub workspace. Use when you need to permanently remove a domain. The domain must exist and be owned by your workspace.
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.
Delete Tag
Tool to delete a tag from Dub. Use when you need to remove a tag that is no longer needed.
File Updated
Triggers when a file's metadata or content changes in Google Drive.
Get Link Info
Tool to retrieve details of a specific short link from Dub. Use when you need to get comprehensive information about a link including its configuration, targeting settings, and performance metrics.
Google Drive Changes
Triggers when changes are detected in a Google Drive.
Get Links
Tool to retrieve a paginated list of links for the authenticated workspace. Use when you need to list links with optional filtering by domain, tags, folder, search terms, or user. Supports pagination and sorting for efficient retrieval of large link collections.
Connect any two apps with Notis in the middle.
Google Drive and Dub, 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 Dub.