Skip to content
Notis

Remove deleted OneDrive documents from Cody

Keep your knowledge base clean when source files disappear.

Trigger

OneDrive Item Deleted Trigger

Triggers when a file or folder is deleted in OneDrive. Uses Gmail-style state management for reliable duplicate prevention.

Action

Delete Document

Tool to delete a document by id. Use when removing a document that is no longer needed.

Why this helps

Deleted files remain searchable in Cody and can mislead decisions.

  • Reduces outdated answers
  • Keeps source systems aligned
  • Automates cleanup

Setup

Build it in a few focused steps.

  • 1Connect OneDrive and Cody in Notis once.
  • 2Create an automation named Delete removed source documents.
  • 3Tell Notis to identify the matching Cody document and delete it when a OneDrive item is deleted.
  • 4Pick the OneDrive Item Deleted trigger and a report channel.
  • 5Test with one disposable file.

Questions about this workflow

How is the matching Cody document found?

Provide a consistent naming or source reference convention in the instruction so Notis can identify the document.

Can this delete the wrong document?

Tell Notis to report ambiguity and skip deletion when no unique match is available.

When this happens · Trigger

Do this · Action

Supported Triggers and Actions

Notis builds workflows that link One drive to Cody. A trigger fires from one place; an action lands in another.

One drive triggers

Cody actions

Recurring trigger

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

TriggerScheduled

Create Conversation

Tool to create a new conversation with a specified bot. Use when starting a new conversation thread with optional focus mode to limit bot's knowledge base to specific documents.

ActionInstant

Webhook trigger

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

TriggerInstant

Create Document

Tool to create a new document with text or HTML content in Cody AI. Use when you need to add documents to Cody's knowledge base with up to 768 KB of content.

ActionInstant

Onedrivebasetrigger

Base trigger for OneDrive changes using Gmail-style state management. Subclasses override `filter_changes(...)` to extract only the relevant items.

TriggerPolling

Create Document From File

Tool to create a document by uploading a file (up to 100 MB). Supports txt, md, rtf, pdf, ppt, pptx, pptm, doc, docx, docm formats. Use when you need to add file-based documents to Cody's knowledge base. The file is processed asynchronously.

ActionInstant

OneDrive File Created Trigger

Triggers when a new file is created in OneDrive. Uses Gmail-style state management for reliable duplicate prevention.

TriggerPolling

Create Document from Webpage

Tool to create a document from a publicly accessible webpage URL. Use when you need to import content from a webpage into Cody AI. The webpage must be accessible without login. If request fails, ensure the URL is publicly accessible and not blocked by a firewall.

ActionInstant

File Updated

Trigger that fires when a OneDrive file's content or metadata changes. Returns file ID, last modified time, and modifier info.

TriggerPolling

Create Folder

Tool to create a new folder in Cody AI for organizing content. Use when you need to create a folder to organize documents or conversations.

ActionInstant

OneDrive Folder Created Trigger

Triggers when a new folder is created in OneDrive. Uses Gmail-style state management for reliable duplicate prevention.

TriggerPolling

Delete Conversation

Tool to delete a conversation by its ID. Use when you need to permanently remove a conversation from the system.

ActionInstant

OneDrive Item Deleted Trigger

Triggers when a file or folder is deleted in OneDrive. Uses Gmail-style state management for reliable duplicate prevention.

TriggerPolling

Delete Document

Tool to delete a document by id. Use when removing a document that is no longer needed.

ActionInstant

Item Moved or Renamed

Triggers when a file or folder is moved to a different path or renamed in OneDrive. Includes both old and new path/name data in the payload.

TriggerPolling

Get Conversation

Tool to fetch a conversation by its ID from Cody AI. Use when you need to retrieve details about a specific conversation. Supports optional includes parameter to filter response to list document IDs.

ActionInstant

Connect any two apps with Notis in the middle.

One drive and Cody, 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 Cody.