How to detect deletion of a file in G drive?

So, I’ve been playing around with different RAG setups for a while now and I’ve been able to get things running pretty smoothy.

However I’d like to detect if a file (which is already inserted into the vector DB) is deleted in a Google Drive folder …

Selecting the records (through meta data) is not the issue … this works for updating etc…

However I can’t find a way to detect that a document has been deleted - in order to push the workflow further …

Anyone know if and what I’m overlooking here ?

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @lexgabrees

yeah at the moment we don’t have a direct way to monitor for file deletions in Google Drive. I suppose there is two approaches you could attempt.

You can either regularly pull a list of all files in the folder and store that list somewhere and then compare it on a regular basis to see if any files are no longer present.

Or you could explore the Google Drive API and use the HTTP request node for it. For example, the changes resources:

I would also recommend to put this forward as a feature request here - Feature Requests - n8n Community as I can imagine there would be many users upvoting this.