Skip to content
Browse all functions

RAG – Delete Document from Knowledge Base

rag/deletedocument

deletedocument (RAG – Delete Document from Knowledge Base) is a 1001fx API function in the group Knowledge bases (RAG): POST https://api.1001fx.com/rag/deletedocument, 0 credits per call. It works as a ready-made module in Make or as a plain HTTP call.

0 credits per callHTTP APIMake

Removes a document with its passages and a stored original (404 if it does not exist). Free.

Endpoint

POSThttps://api.1001fx.com/rag/deletedocument
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
application/json

Parameters

  • knowledgeBasestringrequired

    Name or ID of the knowledge base, e.g. "Support FAQ" or support-faq (same knowledge base). rag/adddocument creates it if it does not exist.

    Example:
    Support FAQ
  • documentIdstringrequired

    ID of the document (as given when adding it).

    Example:
    1AbCdriveFileId

Examples

RAG – Delete Document from Knowledge Base

Needs an API key of an account (not a test key).

Input

Expects a json body
{
  "knowledgeBase": "Support FAQ",
  "documentId": "faq-billing"
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/rag/deletedocument' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"knowledgeBase":"Support FAQ","documentId":"faq-billing"}'

Try deletedocument now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.002.11.2026created