Google Drive folder monitoring

Describe the problem/error/question

I´m trying to create something that´s supposed to be simple… to monitor a Google Drive folder, and send an notification email (can be a Slack message too) whenever a file is created, modified/updated, or deleted from that folder (and, ideally, its subfolders…). I managed to come up with something for the creation/update, but the deletion is not working.

My approach was to add an IF node checking if the {{ $json[“trashed”] }} is true or not… However, this is not working, apparently, since it doesnt get the file deletion.

The be honest I´m very frustrated with the Google integration, but if I manage to make at least this work, it would be nice… does anyone here went through something similar? Any ideas on how to accomplish that?

Thanks in advance guys!

What is the error message (if any)?

There is no error message, it simply doesn´t “see” when the file is sent to trash. It worked when the file was created, when it was modified, but not when the same file was deleted.

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.53.2
  • Database (default: SQLite): Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): self-hosted with npm
  • Operating system: Linux

Welcome to the community @thiago-bureau :tada: and sorry to hear that you’re struggling with the Google Drive node. I don’t think the current Google Drive node supports watching deleted files but you might be able to use a Schedule trigger node + HTTP request node and make a custom API request to look for trashed files within a certain interval :thinking:

@aya
I also want a n8n Trigger that fires when a file is deleted or removed from a folder.
Will the GDrive Trigger “changes involving a specific folder” inform me when a file is deleted from a folder?

I too would like to see a trigger based on file deletion in a Google Drive folder. That would be very useful. Ty n8n Team!

1 Like

Hi guys,

Currently we do not have support for trashed files, can you please add to our feature requests here and upvote it?
Thanks! :pray:

@ria good suggestion!
I have created a new feature request per your suggestion.

@here @thiago-bureau @aya @HemlockHolmes please upvote! :up: :ballot_box:

3 Likes

Thanks @n8-builder-dude :star2:

Great! It would really be helpful to have this trigger in the Google Drive node.

Combined with improved support for deleting vectors based on metadata in Pinecone would make my day! :rocket:

I have supported your feature request with a vote, @n8-builder-dude :pray: