AutomationFlowsAI & RAG › Reset Documents Table

Reset Documents Table

00 — Reset documents table. Uses supabase. Webhook trigger; 2 nodes.

Webhook trigger★☆☆☆☆ complexity2 nodesSupabase
AI & RAG Trigger: Webhook Nodes: 2 Complexity: ★☆☆☆☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "00 \u2014 Reset documents table",
  "settings": {
    "executionOrder": "v1"
  },
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "reset-documents",
        "responseMode": "lastNode",
        "options": {}
      },
      "id": "a0000000-0000-4000-8000-000000000001",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        -400,
        0
      ]
    },
    {
      "parameters": {
        "operation": "delete",
        "tableId": "documents",
        "filterType": "manual",
        "matchType": "allFilters",
        "filters": {
          "conditions": [
            {
              "keyName": "id",
              "condition": "gte",
              "keyValue": "1"
            }
          ]
        }
      },
      "id": "a0000000-0000-4000-8000-000000000002",
      "name": "Delete All Rows",
      "type": "n8n-nodes-base.supabase",
      "typeVersion": 1,
      "position": [
        -180,
        0
      ],
      "credentials": {
        "supabaseApi": {
          "name": "<your credential>"
        }
      },
      "notes": "Empties the vector store so an ingestion can be replayed without duplicating chunks. Destructive by design \u2014 run it only before a full re-ingest."
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Delete All Rows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

00 — Reset documents table. Uses supabase. Webhook trigger; 2 nodes.

Source: https://github.com/BhrayanM/rag-engine/blob/main/workflows/00-reset-documents.json — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

Storage Sync - Google Drive. Uses supabase, googleDrive, httpRequest. Webhook trigger; 22 nodes.

Supabase, Google Drive, HTTP Request
AI & RAG

Automatically enhance and enrich contact data using AI to fill in missing information, generate insights, and create detailed buyer personas. Supports multiple AI providers (OpenAI, Anthropic, etc.) w

HTTP Request, Supabase
AI & RAG

This workflow is designed for students, teachers, and exam preparation content creators who want to automate the creation and sharing of multiple-choice questions (MCQs) with short explanations and no

Supabase, Google Gemini, @Apify/N8N Nodes Apify
AI & RAG

operation1+2. Uses httpRequest, supabase, mistralAi, anthropic. Webhook trigger; 12 nodes.

HTTP Request, Supabase, Mistral Ai +1
AI & RAG

Salão Inteligente. Uses openAi, httpRequest, supabase, googleCalendar. Webhook trigger; 12 nodes.

OpenAI, HTTP Request, Supabase +1