Skip to main content
convex.onDocumentDeleted watches one table and starts the automation when Convex emits a document tombstone.
automations/deleted-convex-message.automation.ts
Options are table, optional component (default ""), optional OAuth deployment (default prod), and optional account. Trigger data includes documentId, revision, table, component, action: "deleted", and document: null. This trigger requires Convex Pro Data Sync and deployment:data:view.