Outdated, incorrect or withdrawn material keeps shaping answers for as long as a retrieval system can still find it. AnythingLLM holds an uploaded document as processed text in its My Documents library and as vectors in each workspace that embedded it, so deleting the document completely means clearing both.
Removing the file from a workspace takes effect at once, without a confirmation prompt, and erases only that workspace's vectors, leaving the library copy for other workspaces. Deletion from My Documents goes further. It erases the processed text and cached embeddings and unembeds the file from every workspace, for every user, with no undo, and AnythingLLM keeps no copy of the original upload.
Neither action rewrites history. Earlier replies and the source passages saved with them stay in chat history, exported chats and instance backups keep their own copies, and the default LanceDB vector store can retain the deleted text in older table versions on disk, so deletion alone does not complete a right-to-erasure request. Managing documents and workspace settings needs an admin or manager account in multi-user mode. Only Query mode limits a workspace's replies to documents it can still retrieve, while the default Agent mode lets the chat model, such as an Ollama model on an AnythingLLM Docker installation, answer from its own knowledge, so confirming that a deleted document is gone means switching a setting that applies to everyone using the workspace.
Steps to delete a document from AnythingLLM:
- Click the upload icon beside Cedar Lantern in the sidebar.
Cedar Lantern and cedar-lantern-dispatch.txt stand in for your own workspace and document. The upload and gear icons appear on the selected workspace row.
- Find cedar-lantern-dispatch.txt in the Cedar Lantern list below the upload area.
My Documents at the top of the dialog hides files that are embedded in the open workspace, so the file appears only in this list until it leaves the workspace. On a wider window, the workspace list sits to the right of My Documents.
Removing the file from the workspace happens as soon as its control is clicked. Every thread and user of Cedar Lantern stops receiving answers from it, while the library copy and any other workspace that embedded it are unaffected.
- Click the Remove document from workspace arrow at the right end of the cedar-lantern-dispatch.txt row.

- Confirm that the Cedar Lantern list shows No Documents.
If other workspaces still need the file, stop here, because new threads in Cedar Lantern no longer retrieve it while the library copy stays available.
- Expand the custom-documents folder at the top of My Documents.
Uploads land in custom-documents unless they were moved to another folder.
- Confirm that cedar-lantern-dispatch.txt is listed in custom-documents with a Cached label.
The library copy survives the workspace removal. Cached shows that AnythingLLM also kept the file's embedding results on disk for reuse.
- Select the checkbox beside cedar-lantern-dispatch.txt.
Deleting the selected files erases them from AnythingLLM and from every workspace that uses them, for all users, and cannot be undone. Ticking the folder checkbox selects every file in that folder, and selecting the only file in a folder highlights the folder row as well, so check the file count beside the folder name and that no other file row is highlighted. If the file may be needed again, keep a copy of the original outside AnythingLLM before deleting it.
- Click the trash button beside Move to Workspace.

- Click OK in the browser's confirmation dialog.
The dialog asks “Are you sure you want to delete these files and folders?” and warns that the files will be removed from the system and from any existing workspaces, and that the action is not reversible. The Cancel button leaves the file in place.
- Confirm that cedar-lantern-dispatch.txt is gone from custom-documents.
The folder remains, without a file count, after its last document is deleted.
- Close the Documents dialog with the X in its upper-right corner.

- Click the gear icon beside Cedar Lantern to open the workspace settings.

- Click the Chat Settings tab.

- Click Query under Chat mode.
The chat mode saves as soon as it is clicked and applies to every user of Cedar Lantern. Query answers only from documents the workspace can retrieve, while the default Agent mode, like Chat, lets the model reply from its own knowledge, so a reply in those modes cannot show whether the file is gone. If the workspace's users rely on Agent mode, select it again after the check.
- Click + New Thread beneath Cedar Lantern.
Earlier threads keep the replies they already received, so only a new thread shows what the workspace can still retrieve.
- Enter the following question in Send a message.
For Cedar Lantern, what is the dispatch code and collection day? Answer only from the supplied documents and cite the source.
For your own document, ask about a fact that only that document contains.
- Click the send arrow to submit the question.

- Confirm that the reply reports no relevant information in the workspace and shows no Sources.
If the file were still retrievable, Query mode would answer with its dispatch code and collection day and list cedar-lantern-dispatch.txt under Sources. The earlier thread still shows its old answer and source until that chat history is deleted.