Move contents of Google Drive folder to trash but keep the folder

I need to create a node to move contents of a Google Drive folder to trash.
POST https://www.googleapis.com/drive/v2/files/{fileId}/trash would be what to use, but how do I specify all files in a specific folder(by ID)? I assume if I put the folder ID in {fileId} it would just move the whole folder to trash, not just the contents. I need to keep the folder! Help!

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:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.