mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
feat: Public API Endpoint for Deleting Web Search and Image Generation Document Chunks for a Chat #6392
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @chejohn on GitHub (Sep 12, 2025).
Check Existing Issues
Problem Description
My team has a Python script that performs a deletion of chats, their attached files, and the files' document chunks within the public.document_chunk database in Postgres after 90 days of inactivity. We are unable to delete document chunks generated from web-searches and image generation within a chat since there is no router endpoint for performing this action.
Desired Solution you'd like
We would like the ability to send a request to a router endpoint to delete document chunks within the public.document_chunk database for web searches and image generation that occurred within a chat.
Alternatives Considered
No response
Additional Context
No response