LibreChat data privacy: what stays in your infrastructure
A self-hosted LibreChat keeps users, conversations, messages, settings and files in infrastructure you run, and its data controls sit in the MIT-licensed open-source software, with no paid edition required. Users, conversations, messages and settings are stored in MongoDB, and uploaded and generated files go to local storage by default. Three paths send data outside your infrastructure by design. Every prompt goes to the model providers you configure, since LibreChat runs no models itself. File-search embeddings default to OpenAI, so the text of indexed files reaches that provider unless you choose Hugging Face or Ollama embeddings. Files uploaded while an OpenAI Assistants endpoint is active are stored with OpenAI and never reach LibreChat's RAG API.
Turn these exceptions into a checklist for your review. Check the fileStrategy setting in librechat.yaml, which can be set to Firebase, S3, Azure Blob or CloudFront in addition to the local default, and review the fileStrategy settings for each option. If you choose Azure Blob, set AZURE_STORAGE_PUBLIC_ACCESS to false, because it defaults to true and leaves uploaded blobs publicly readable. Confirm which embedding provider the RAG API uses and whether that provider is on your approved list. Confirm whether any OpenAI Assistants endpoint is enabled in librechat.yaml, and disable it if its file handling falls outside your approved list. Deleting a file in LibreChat also removes its vectors, so test that deletion path end to end before approval.
This section does not assess compliance with any specific regulation. It describes where data sits and which exceptions exist, so your compliance and security teams can map them to their own obligations. The question to bring to your assessor is whether the providers you configure, along with the storage and embedding choices above, meet your data-handling rules. Ask each provider for its current data retention and training terms in writing and file them with the approval record. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports or certifications. Independent auditors and certification bodies make that determination.
Which data controls LibreChat provides out of the box
This table lists each data control in the open-source software that affects where conversations and files are stored or sent, with its status and what you should verify in your deployment. Read the status column first: Built in means the function exists without extra setup, while Needs your configuration means the default leaves data exposed or undecided. Retention, Azure Blob public access and the embedding provider all have defaults you should check against your own requirements.
| Control | Status in the open-source software | What you confirm |
|---|---|---|
| MongoDB store for users, conversations, messages and settings | Built in | Where the MongoDB data volume lives, who can reach it, and that it stays inside your network boundary. |
| fileStrategy for uploaded and generated files | Needs your configuration | Local is the default. Confirm the backend you choose and its region, access policy and encryption. |
| Azure Blob public access | Needs your configuration | AZURE_STORAGE_PUBLIC_ACCESS defaults to true. Set it to false and confirm blobs stay private. |
| File search index in PostgreSQL with pgvector | Built in and opt-in | Whether the optional RAG API is deployed, and where its PostgreSQL volume and chunk data are kept. |
| Embeddings for file search | Needs your configuration | OpenAI is the default provider. Confirm who receives file text, or choose Hugging Face or Ollama. |
| Retention modes and 720-hour default period | Needs your configuration | The default mode expires only temporary chats. Choose all or ephemeral if regular chats need expiry, and confirm the period. |
| Opt-in content filter | Built in and opt-in | Starter patterns cover only credential shapes. Other PII needs your own regular expressions and testing. |
| Browser Real User Monitoring | Built in and opt-in | Disabled by default. Session replay can capture prompts and responses, so confirm consent and keep it off unless approved. |
| Encryption at rest and backups | Outside the software | Confirm disk or volume encryption, MongoDB and PostgreSQL backups, and restore testing in your infrastructure. |
How LibreChat moves a chat and a file through its services
The LibreChat API writes users, conversations and messages to MongoDB, which is required because those records live there. The default docker-compose.yml also runs Meilisearch for message and conversation search. Confirm what Meilisearch stores in your version, including whether message text is indexed and how deletions reach that index, and give it the same access controls and backups you give MongoDB. LibreChat does not run models itself. Each chat request goes from the API to the providers you configure, so those providers and their data terms determine where prompt text is processed. Your security team should approve that provider list before rollout.
Uploads go to the storage selected by fileStrategy, which defaults to local storage and can be set to Firebase, S3, Azure Blob or CloudFront. If you choose Azure Blob, check AZURE_STORAGE_PUBLIC_ACCESS first, because it defaults to true and makes uploaded blobs publicly readable unless you set it to false. For file search, LibreChat sends each file to its RAG API, which chunks the text, creates embeddings and indexes them in PostgreSQL with pgvector. Embeddings use OpenAI by default, so file contents leave your infrastructure for that provider unless you switch to Hugging Face or Ollama. Files uploaded while an OpenAI Assistants endpoint is active are stored with OpenAI and are not indexed by the RAG API, so confirm which endpoints users can reach before you promise a storage location.
Enforcement sits in four places. Retention is set by retentionMode, which by default expires only temporary chats, with periods from 1 to 8760 hours and a default of 720 hours. A MongoDB TTL index on expiredAt removes expired conversations, messages and shared links, usually within about a minute of the deadline, and a periodic sweep deletes expired files from storage, as described in the data retention docs. The filter step runs on submission only when you enable the filters setting, and its starter patterns cover only credential shapes such as sk- prefixes, bearer tokens and api-key headers, so PII needs your own regular expressions. Redaction applies only to fresh text-only Agent submissions, and audit records never include the matched text. Deleting a file also removes its vectors, so test that path end to end before you rely on it.
Where a message and an uploaded file travel
The diagram starts at the user's browser, which sends each message and file to the LibreChat API inside your infrastructure. The API writes users, conversations and settings to MongoDB, sends message search to Meilisearch and stores uploads in whichever backend the fileStrategy setting selects. For file search, the API passes each file to the RAG API, which indexes it in pgvector and sends text chunks to the embedding provider, OpenAI by default. Chat requests go from the API to the chat model provider you configure. The Code Interpreter sandbox is optional. Check each provider arrow against the providers you have actually configured, and check the storage choice against your retention settings.
Arrows show where a message and an uploaded file leave the LibreChat API.
Six data decisions to make before the first user signs in
Six settings decide where LibreChat conversations and files end up before anyone signs in. Each card names one decision, what it changes, and who should approve it. Settle them together, because a single choice, such as a hosted embedding service, can move data outside your network even when chat stays local.
Chat model provider and endpoint
Every prompt and response goes to whichever model endpoint you configure in librechat.yaml or the environment. LibreChat does not run models itself, so cloud APIs receive each prompt and the context sent with it. A self-hosted endpoint such as Ollama keeps those prompts inside your network. Confirm each provider's data terms and retention, and have the platform owner and privacy lead approve every endpoint before users get access.
librechat.yaml docsEmbedding provider for file search
File search sends each uploaded file to the RAG API, which chunks it and stores embeddings in PostgreSQL with pgvector. Embeddings use OpenAI by default, with Hugging Face or Ollama as alternatives. A hosted embedding service receives file text during indexing, even if chat runs on a local model. The data owner and security lead should approve the provider, and a test should confirm that deleting a file also removes its vectors.
RAG API docsFile storage strategy and access
The fileStrategy setting decides where uploaded and generated files are kept. It defaults to local storage and can point to Firebase, S3, Azure Blob or CloudFront. Each external option moves file bytes into a service you must govern, with its own bucket or container permissions. For Azure Blob, AZURE_STORAGE_PUBLIC_ACCESS defaults to true, so uploaded blobs stay publicly readable unless you set it to false. The platform owner and security team should approve the store and its access policy before the first upload.
Retention mode and period
The retentionMode setting decides which chats expire. The default, temporary, expires only chats users mark as temporary. The all mode expires every chat after the period, and ephemeral makes every chat temporary. Expired conversations, messages and shared links are removed by a MongoDB TTL index, usually within about a minute of the deadline, while files are removed by a periodic sweep. The records owner and business owner should set the mode and period, then test a deletion end to end.
Data retention docsContent filter policy
The opt-in filters setting can block or audit matches in messages, prompts, files, skills, memories and tool arguments. The built-in starter patterns cover only credential shapes such as sk- prefixes, bearer tokens and api-key headers, so other PII needs custom regular expressions. Redaction applies only to fresh text-only Agent chat submissions. Audit records never include the matched text, so the security lead and privacy owner must agree who reads them and where they are stored.
Content filter docsTelemetry and analytics settings
Browser Real User Monitoring is disabled by default, and its docs warn that session replay may collect sensitive prompts, responses or payloads. Google Tag Manager loads only after a user accepts the analytics consent banner. Keep monitoring off unless the privacy owner has reviewed what it captures. Confirm the banner wording matches what your organization collects, and have the security lead sign off on any analytics tool before it is enabled.
Interface docsHow the data path changes by provider, storage and network
When a request goes to a cloud model API, LibreChat sends it to the provider you configured and does not run the model itself. From that point, the provider's own terms govern how long the prompt and response are retained, whether they can be used for training, and where they are processed. LibreChat's retention settings only control the copy your deployment keeps in MongoDB, so they do not change what the provider keeps.
- Provider terms: Each provider publishes retention and training terms that apply to every prompt sent through the endpoint. Confirm the agreement that covers your account, including any data-processing addendum or zero-retention option the provider offers.
- Account type: Consumer and enterprise accounts can carry different terms. Confirm which account owns each API key.
- Local copy: Conversations and messages persist in MongoDB under your retention mode and period. The platform team controls this copy, and its expiry is set in configuration. See the data retention docs for how the settings behave.
- Processing region: Confirm the region where each endpoint processes requests, including Azure OpenAI or AWS Bedrock deployments.
- Key custody: Confirm who holds provider API keys and where they are stored, because those keys authorize spend and model access.
Before go-live, ask each provider for its written retention and training terms for your account, and ask the platform team to confirm which endpoints each role can reach.
Prompts stay inside your network only when the model endpoint is one you run. LibreChat connects to whatever base URL you set, so the address decides the boundary. A local Ollama host or an OpenAI-compatible server inside your data center keeps prompt traffic internal, while a remote host outside it moves the data path back to a third party. The model server also has its own logging and update behavior, which LibreChat does not control.
- Endpoint address: Check the base URL for every custom endpoint in librechat.yaml and the server settings in .env. A hostname that resolves outside your network changes the data path.
- Model server logs: The model server may write request logs, prompt caches or telemetry. Confirm its logging settings with the team that runs it.
- Mixed configuration: One configuration file can list local and cloud endpoints side by side, and users can switch between them. Confirm which endpoints each role can select.
- Model storage: Model weights, caches and any imported files sit on the host you run. The storage owner needs a backup and retention plan for them.
- Tool calls: An agent or tool that calls an external service sends data out of your network even when the chat model is local.
Ask the platform team to test each configured endpoint from a user session, then have the network owner confirm the outbound connections that the deployment actually makes.
File search adds a second data path. LibreChat sends each uploaded file to its RAG API, which splits the text into chunks, creates embeddings and stores them in PostgreSQL with pgvector. The embedding provider is set separately from the chat model. OpenAI is the default, so chunk text is sent to OpenAI during indexing. Hugging Face and Ollama are available as alternatives, and a local choice keeps that text inside your deployment. See the RAG API configuration docs for the settings.
- OpenAI embeddings: Chunk text leaves your network during indexing. Confirm OpenAI's terms for embedding requests on your account.
- Local embeddings: Hugging Face or Ollama embeddings keep chunk text in your environment when the service runs inside your boundary. Confirm where the model is hosted and where it was downloaded from.
- Vector store: Chunks and vectors live in PostgreSQL. The storage owner must confirm encryption at rest and backup coverage for that database.
- Deletion: Deleting a file in LibreChat removes its vectors, but backups and the stored original may follow a different schedule. Confirm both with the storage owner.
- Assistants files: Files uploaded while an OpenAI Assistants endpoint is active are stored with OpenAI and are not indexed by the RAG API, so they follow a different path.
Ask the platform team which embedding provider is configured, and ask the storage owner where the PostgreSQL volume lives and who can read it.
In a restricted or air-gapped network, the main question is what the deployment does when a provider endpoint cannot be reached. Confirm this behavior before the deployment is approved, because the answer depends on the version, the configuration and how the client reports errors. Outbound dependencies also include file storage, analytics and any service a tool calls, so each one needs an owner and a documented decision.
- Unreachable endpoints: Confirm what users see when a configured provider times out or refuses connections, and whether other endpoints still respond. Test this in staging before relying on it.
- Images and updates: Confirm how container images and packages reach the enclosed network, and who approves each update.
- Analytics: Browser Real User Monitoring is disabled by default, but session replay may capture sensitive prompts and payloads. Google Tag Manager loads only after a user accepts the analytics consent banner, so confirm the setting and banner with the platform team.
- File storage target: Local storage keeps uploads inside your network. Cloud options such as S3, Azure Blob or Firebase send files to that service. For Azure Blob, AZURE_STORAGE_PUBLIC_ACCESS defaults to true, which makes uploaded blobs publicly readable unless it is set to false.
- Sandbox and search services: Confirm that the Code Interpreter sandbox and Meilisearch run inside the boundary without outbound dependencies.
Have the platform team run a failure test with each provider blocked and record the result, then ask the storage owner to sign off on the file strategy in writing.
Where LibreChat data privacy falls short by default
Several LibreChat defaults leave conversations, files and audit evidence in places many teams do not expect. Each card names one gap and the setting, pattern, storage policy, provider configuration or written procedure that closes it. Review them before users start uploading files or chatting.
Azure Blob uploads are public
When fileStrategy is set to Azure Blob, uploaded files are stored as blobs, and AZURE_STORAGE_PUBLIC_ACCESS defaults to true. That default leaves uploaded blobs publicly readable. Set AZURE_STORAGE_PUBLIC_ACCESS=false in your .env file before the first upload, then confirm on the storage account that anonymous read access is blocked. Check blobs that were already uploaded under the default, because the setting alone does not review them.
Default retention spares regular chats
The default retentionMode is temporary, which expires only chats marked as temporary. Regular chats stay in MongoDB, and they never expire unless the policy says so. Set retentionMode to all to expire every chat after a set period, or to ephemeral to make every chat temporary. Periods range from 1 to 8760 hours and default to 720 hours, so have the data owner approve the period in writing before go-live.
Data retention docsStarter filters miss most PII
The opt-in filters setting ships with starter patterns that cover only credential shapes: sk- prefixes, bearer tokens and api-key headers. Names, account numbers, national identifiers and other personal data pass through unless you add custom regular expressions. Filters can cover messages, prompts, files, skills, memories and tool arguments, so write each pattern for your data and test it against sample content on every surface in a staging instance.
Message filter docsRedaction covers narrow traffic
Redaction applies only to fresh, text-only Agent chat submissions. A message with a file attached, a chat on another endpoint, or any other path falls outside its reach. Map each path your users take before relying on redaction. For paths it cannot reach, write a procedure that tells users what must never be pasted there, and have someone test that procedure with real staff workflows before rollout.
Audit records omit matched text
When a filter runs in audit mode, the record shows that a pattern matched but never the matched text. An investigation into a possible leak cannot confirm what was sent from the audit log alone. Decide in advance where the evidence will come from, such as the conversation record in MongoDB, your reverse proxy logs or the provider's own records. Write the investigation procedure, name an owner for each source and test that the sources can be reached within your incident timeline.
OpenAI Assistants store files externally
Files uploaded while an OpenAI Assistants endpoint is active are stored with OpenAI, and LibreChat's RAG API does not index them. Retention settings and file cleanup in LibreChat apply to LibreChat's own storage, so confirm with OpenAI how those copies are retained and deleted. Decide whether the endpoint is needed at all. If it is, record its data terms in your provider configuration and tell users which upload path keeps files in your infrastructure.
Chat with files docsRolling out LibreChat data privacy controls in production
Work through these steps in order so each control is set and checked before the next one depends on it. The sequence starts with an inventory of where conversations, messages, files and search indexes live, then moves through providers, storage, retention, filtering, telemetry and deletion, and ends with a retest on every LibreChat version change.
Map data stores and outbound calls
Name every place LibreChat writes data: MongoDB for users, conversations, messages and settings, Meilisearch for message and conversation search, pgvector in the RAG API for file chunks and embeddings, and your file storage backend. Then list every outbound call, including model providers, embedding providers and any custom endpoints in librechat.yaml. The platform team builds this inventory and the security team reviews it. Done when each store and each outbound destination appears on the list and a second person has matched it against the running configuration.
Record provider retention and data handling terms
For each provider in the inventory, record what it retains, for how long, whether it uses submitted data for training, and where processing happens. Pull these terms from the provider's current contract or data processing terms, and date the copy you keep. Check one caveat now: when an OpenAI Assistants endpoint is active, uploaded files are stored with OpenAI rather than indexed by the RAG API, so LibreChat deletion may not reach them. Done when every provider has a dated record signed off by the legal and security owners, and every endpoint that stores files is marked as such.
Set file storage and close public blob access
Set fileStrategy in librechat.yaml to the backend your security team has approved. It defaults to local storage and can also be set to Firebase, S3, Azure Blob or CloudFront. If you use Azure Blob, set AZURE_STORAGE_PUBLIC_ACCESS to false, because it defaults to true and leaves uploaded blobs publicly readable. Confirm this from outside your network: upload a test file, then request its blob URL without credentials and expect the request to fail. Done when the anonymous request is refused and the storage account shows private access.
Set retention mode and confirm expiry
Choose a retentionMode: temporary (only temporary chats expire, the default), all (every chat expires after a set period) or ephemeral (every chat is temporary). Set the period between 1 and 8760 hours; the default is 720 hours. Expiry runs through a MongoDB TTL index on expiredAt, usually within about a minute of the deadline, while expired files are removed by a periodic sweep whose interval you should confirm in the current docs. Create a test chat that expires, attach a test file, and wait past the window. Done when both are gone from the interface, MongoDB and file storage.
Define and test filter patterns
Filters are opt-in, so enable them deliberately, then choose for each surface whether a match blocks the request or only writes an audit record. Starter patterns cover only credential shapes such as sk- prefixes, bearer tokens and api-key headers. Other personal data needs custom regular expressions that you write and test. Redaction applies only to fresh text-only Agent chat submissions, so files, prompts, memories and tool arguments need blocking or auditing instead. Test with synthetic records you create, never production data. Audit records do not hold matched text, so keep your own test log. Done when each pattern catches its positive sample, passes its negative sample and produces the expected block or audit result.
Lock telemetry and confirm consent behavior
Browser Real User Monitoring is disabled by default. Confirm it stays off, since its session replay may capture sensitive prompts, responses or payloads. Google Tag Manager loads only after a user accepts the analytics consent banner, so test this in a clean browser profile: before acceptance, the browser should make no request to the tag manager, and after acceptance it should. Record the LibreChat version and the settings file you tested, and keep that file under version control. Done when the clean-profile test matches that behavior and the telemetry settings are recorded in your configuration review.
Test deletion across stores and backups
Create a test conversation with an uploaded file, delete it in the interface, then check each store directly: conversation and messages in MongoDB, file chunks and vectors in pgvector, the file object in storage, and the message index in Meilisearch. Deleting a file removes its vectors, but the other stores need your own check. Next, compare backup and snapshot retention with the retention window. Backups may keep deleted data longer, so record that period and get a decision from the data owner. Done when each store shows the deletion, or the gap is documented with an owner and a decision.
Retest after each LibreChat version change
Watch the LibreChat GitHub releases page and tie retests to each version you deploy. The page flags every 2026 release, including v0.8.9 published on November 17, 2026, as a pre-release, and the changelog states no fixed release schedule. Rerun the inventory, provider, storage, retention, filter, telemetry and deletion checks against the new version, including any release candidate you test before production. Done when the checks pass, changes to defaults are recorded, and the results are filed under the version number.
What a security reviewer asks to see for LibreChat data flows
This table lists the evidence a security reviewer usually requests to confirm where LibreChat conversations, messages and files are stored and sent, and how long they stay. Each row names the evidence, where it comes from and who should produce it, so the reviewer can trace every claim to a setting, a test or a provider document. DeployOpen prepares this evidence with your team, but it does not issue audit reports or attestations; independent auditors and certification bodies do.
| Evidence | Where it comes from | Owner |
|---|---|---|
| Data store and outbound call inventory | Built from the running deployment: MongoDB, Meilisearch, pgvector, RAG API, file storage and every model, embedding and telemetry endpoint | Platform team with DeployOpen |
| Environment and librechat.yaml settings | Exported .env and librechat.yaml values for file storage, retention mode, retention hours, filters and telemetry | Platform engineering |
| Storage access policy export | Bucket or container policy for the file store, including the Azure Blob public access setting if that backend is used | Cloud or storage team |
| MongoDB TTL index definition and expiry test | Index listing on the expiry field, plus a recorded test showing expired chats removed within the documented timing | Database administrator with DeployOpen |
| Deletion test for vectors | Vector query results before and after deleting a file in LibreChat, plus a storage listing confirming the file is gone | DeployOpen test engineer |
| Filter configuration and test results | Filter section of librechat.yaml, custom patterns for PII beyond the credential starters, and a recorded run with sample inputs | Security team with DeployOpen |
| Consent and telemetry settings | Real User Monitoring state, analytics consent banner behavior and a browser network capture from a fresh session | Product owner and security engineer |
| Provider agreements and retention terms | Each model and embedding provider's own agreement and data retention documents, not LibreChat's documentation | Legal or procurement team |
| Backup and snapshot retention policy | Retention periods for MongoDB, pgvector and file store backups, taken from your database and backup tooling | Infrastructure or database team |
What buyers ask before approving LibreChat data handling
Does LibreChat send my chats to OpenAI?
Only if you configure OpenAI as a provider and a user selects an OpenAI model or endpoint. LibreChat does not run models itself. It sends each request to the providers you set up in your configuration, so the destination depends on which provider and endpoint a user picks. A deployment that configures Anthropic, Azure OpenAI or a local Ollama model sends chats to those services instead, and without OpenAI configured, chat requests do not go to OpenAI. Custom OpenAI-compatible endpoints can point anywhere you choose, including inside your network. Ask your platform team for the list of enabled endpoints in the librechat.yaml and .env files, and check each one against your approved provider list. Embeddings for file search are a separate path, covered below.
Can LibreChat keep all conversations and files inside our network?
Yes, for the parts LibreChat controls, if you pair it with local models and self-hosted storage. Run a local provider such as Ollama, set file-search embeddings to a local option such as Ollama or Hugging Face, and keep the default local file storage or point fileStrategy at storage you operate. Then confirm three things before you call the deployment local. First, list every provider and endpoint, including any a user can add from the interface. Second, check telemetry: Browser Real User Monitoring is disabled by default, but the docs warn that session replay may capture prompts and responses, and Google Tag Manager loads only after a user accepts the analytics banner. Third, confirm any external storage such as Firebase, S3, Azure Blob or CloudFront, because AZURE_STORAGE_PUBLIC_ACCESS defaults to true for Azure Blob. Test outbound traffic from the containers to prove the setup.
What does a LibreChat data handling setup cost and how long does it take?
No single figure applies, because the cost follows your provider mix, hosting and review depth. LibreChat is MIT licensed, so the spend sits elsewhere. Recurring costs are model and embedding usage, which each provider bills, plus hosting for the app, MongoDB, Meilisearch and the RAG API with PostgreSQL and pgvector, storage for files and backups, and staff time to run it. One-time costs cover configuring endpoints and retention, identity integration, testing and evidence gathering. Duration grows with the number of providers, identity sources, storage backends and the depth of review. Ask each bidder for a written scope that lists every provider, storage target, retention rule, test and deliverable, then a quote that separates one-time from recurring lines. DeployOpen works fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
Can our internal team set up LibreChat data handling without a partner?
Often yes for configuration, and the review needs more. A platform team that already runs Docker Compose or Kubernetes can set the .env values, edit librechat.yaml, choose the fileStrategy, configure retentionMode and connect the RAG API to an embedding provider. Those steps are routine infrastructure work with documented settings. The harder part needs security skills: mapping every outbound call, testing whether filters and retention actually act, checking backup and log copies, and documenting evidence for an assessor. An internal team can produce that evidence, but someone outside the build should test it. If the team lacks that background, DeployOpen can plan, implement, harden and test the deployment inside your infrastructure and prepare evidence for your compliance assessment. It does not issue audit reports or certifications.
Does LibreChat retention also delete backups and logs?
Confirm this before you rely on it. LibreChat's retention acts in two places. Expired conversations, messages and shared links are removed by a MongoDB TTL index on expiredAt, usually within about a minute of the deadline. Expired files are removed from storage by a periodic sweep. By default, retentionMode expires only temporary chats, and the period defaults to 720 hours. Those actions change the live database and the file store, but they do not settle what happens to database backups, snapshots, object-storage versioning, proxy or container logs, or copies held by a provider. Each of those copies has its own retention setting that you control. Ask your team to list every backup and log location, set its retention, and test restore behavior to see whether a deleted record reappears from an older snapshot.
What does deleting a file in LibreChat remove?
Deleting a file in LibreChat removes the file and its vectors. When file search is on, each upload goes to the RAG API, which chunks and indexes it in PostgreSQL with pgvector, so deletion covers both the stored file and the embeddings derived from it. Check two exceptions. Files uploaded while an OpenAI Assistants endpoint is active are stored with OpenAI and not indexed by the RAG API, so confirm how they are removed on the provider side. Also confirm what your embedding provider keeps about request content, which depends on that provider's terms. To test deletion, upload a file with a unique phrase, delete it, then confirm the phrase no longer returns in search and check the database and storage copies.
How DeployOpen sets up and tests LibreChat data controls
DeployOpen plans and configures a self-hosted LibreChat so you can see where conversations, messages and files are stored and which providers receive requests. The work covers the storage, retention, filtering and telemetry settings that control that data, inside your own cloud accounts, data centers or air-gapped network. The result is documented settings and a handover your security and compliance teams can review.
How we scope
- The written scope lists each data path to review: conversations, messages, uploaded files, embeddings and telemetry.
- It names the model and embedding providers that will receive requests, and the endpoints your team has approved.
- Engagements are fixed-scope, so deliverables and timelines are agreed in writing before any configuration work starts.
How we build
- Pin storage to your infrastructure: MongoDB, Meilisearch, the pgvector database and the file strategy you choose.
- Set retention mode and period, then verify expired chats, messages and files are removed on schedule.
- Configure content filters, adding custom patterns for PII beyond the built-in credential patterns, and keep browser analytics off unless reviewed.
How we hand over
- A data-flow map showing what is stored in your infrastructure and what leaves it for each configured provider.
- Written configuration records for .env values, librechat.yaml, file storage and retention settings, with the owner of each.
- A test log showing deletion checks for chats, files and vectors, so your reviewers can repeat the checks.
How we support
- Retainers cover upgrades, configuration drift checks and continuous testing after go-live, when you need them.
- Re-check data settings after each LibreChat upgrade, because the project ships release candidates before each release.
- Open items from the handover are tracked in writing, with the owner and the setting each one affects.

