Skip to main content

LibreChat is joining ClickHouse. Learn more

LibreChat

File Library

Browse, preview, download and delete your uploaded files, and restore deleted files from Trash.

The File library lists every file you have uploaded to LibreChat. Open it from the account menu at the bottom of the sidebar by choosing File library. The dialog has two tabs: Files and Trash.

Browse your files

The Files tab shows a table with a thumbnail or file-type badge, the file name, its size and its date. Long names keep the extension visible, and the full name appears on hover or keyboard focus. On small screens each row shows the size and date below the file name.

Search, filters and sorting sit above the list, and the header stays in view while the list scrolls:

  • Filter files searches by name.
  • Filters narrows the list by where a file is stored and what it is used for. The options come from the files you have, so only values present in your library appear.
  • Sort options include Largest first and Smallest first.

Search, sorting and filters work on the files the dialog has already loaded.

Each row has a menu with these actions:

ActionWhat it does
DetailsShows the complete file name, its size, where it is stored and what it is used for.
PreviewOpens the file in the existing file viewer. Shown for files the viewer supports.
DownloadDownloads the file under its original name. Shown for files whose storage strategy supports it.
DeleteMoves the file to Trash after you confirm.

Delete files and use Trash

Select one or more rows and choose Delete, or use Delete from a row's menu. LibreChat asks you to confirm, then moves the files to Trash instead of removing them. If a deletion only partly succeeds, the files that failed stay selected so you can try again.

After files move to Trash, Undo restores them. If the files were attached to a message you had not sent yet, Undo puts the attachments back on that draft, as long as the draft still exists.

The Trash tab lists each deleted file with the date it will be deleted for good (Deletes followed by the date). For each file you can:

  • Restore it to your library.
  • Delete permanently, after a confirmation. This cannot be undone.

The list loads more files as you scroll to the end, and a button lets you load a page again if a request failed.

A file stays restorable until the earliest of these deadlines:

  • The retention period set by fileTrashRetentionDays, 30 days by default.
  • Any earlier staging or file retention deadline the file already had.

At the deadline the file disappears from Trash and can no longer be restored. A purge runs on a schedule (every 24 hours by default) and removes the stored copy from the file's storage provider. Provider removal can lag the deadline by up to 24 hours, and failed removals are retried on the next run.

What Trash does and does not block

  • While a file is in Trash, LibreChat blocks access to it through its own routes and tools, so it stops being available to chats and tools.
  • Restoring a file brings it back with the attachment references it had.
  • URLs the storage provider has already issued, such as signed S3 URLs, keep the lifetime the provider gave them.
  • A file that was added to an external vector store keeps its membership there and the store may still return its content.

Configuration

Trash timing and batch sizes are set at the top level of librechat.yaml. See fileTrashRetentionDays and the related keys for their ranges and defaults.

fileTrashRetentionDays: 30
fileTrashPurgeIntervalHours: 24

How is this guide?