remove_document_tool
Delete documents and associated data from the PinRAG RAG index to manage stored content and maintain relevance.
Instructions
Remove a document and all its chunks from the PinRAG index.
Deletes all chunks and embeddings for the given document. Use
list_documents_tool to see document_ids (e.g. "mybook.pdf", "bwgLXEQdq20", "discord-alicia-1200-pcb", "owner/repo/path" for GitHub).
Uses server config for vector store location and collection.
Args:
document_id: Document identifier to remove (from list_documents_tool).
ctx: MCP request context (injected by the server; unused).
Returns:
Dictionary containing deleted_chunks, document_id, persist_directory, collection_name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | Document identifier to remove (from list_documents_tool). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |