Skip to main content

Overview

Folders in Open WebUI provide hierarchical organization for chats, files, and knowledge collections. Create nested folder structures to keep your workspace organized and efficient.
Folder functionality requires ENABLE_FOLDERS configuration and the features.folders permission for non-admin users.

Creating Folders

Create folders to organize your workspace:
1

Choose a Name

Select a descriptive folder name. Names are case-insensitive and unique per user at each level.
2

Add Metadata (Optional)

Include custom icons or other metadata:
3

Store Additional Data

Use the data field for custom attributes like descriptions or file references
Folder names must be unique within the same parent folder. Attempting to create a duplicate folder will return an error.

Folder Hierarchy

Creating Nested Folders

Build hierarchical structures:

Moving Folders

Reorganize by changing parent:
Moves folder to top level

Folder Management

Listing Folders

Retrieve your folder structure:
Returns:
The list endpoint automatically validates folder integrity and fixes broken parent references.

Get Folder Details

Retrieve a specific folder:
Includes:
  • Full folder metadata
  • Custom data fields
  • Parent relationship
  • Expansion state
  • Timestamps

Updating Folders

Modify folder properties:
data and meta fields are merged with existing values, not replaced.

Expansion State

Control folder visibility in UI:
Use cases:
  • Remember UI State: Persist folder open/closed state
  • Auto-Collapse: Close inactive folders
  • Default Open: Expand important folders by default

Folder Contents

Storing References

Folders can reference various content types:

Files

References to uploaded files tracked in the files system

Collections

Knowledge base collections for RAG

Custom Types

Application-specific content references

Automatic Validation

Folder list endpoint validates content:
1

Check File Access

Verifies you have read access to referenced files
2

Check Collection Access

Validates knowledge collection permissions
3

Remove Invalid References

Automatically cleans up inaccessible items
4

Update Folder

Saves cleaned references back to database

Chats in Folders

Chats can be organized in folders:
Folders support hierarchical chat organization. Retrieving folder contents can include subfolders automatically.

Deleting Folders

Remove folders and handle contents:

Deletion Options

Behavior:
  • Deletes all chats in folder
  • Recursively deletes subfolders
  • Removes all folder contents
  • Permanent deletion

Recursive Deletion

Folder deletion handles the entire hierarchy:
1

Identify Children

Finds all subfolders recursively
2

Process Chats

For each folder, either deletes or moves chats
3

Delete Subfolders

Removes child folders from deepest level up
4

Delete Parent

Finally removes the requested folder
Deleting a folder with delete_contents=true permanently removes all chats in that folder and its subfolders. This action cannot be undone.

Permission Requirements

Folder deletion checks:

Search & Discovery

Search by Name

Find folders matching specific names:
Find folders containing text:

Name Normalization

Search intelligently handles variations:

Space Handling

“Work Projects” = “work_projects” = “work projects”

Case Insensitive

“PROJECTS” = “projects” = “Projects”

Punctuation

Underscores and spaces treated identically

Whitespace

Multiple spaces collapsed to single space

Folder Integrity

Automatic Validation

The folder list endpoint ensures data integrity:
Benefits:
  • Self-Healing: Automatically fixes broken references
  • Access Control: Removes inaccessible items
  • Consistent State: Ensures valid folder hierarchy

Preventing Duplicate Names

System enforces unique names:

Best Practices

Folder Organization

1

Use Clear Names

Choose descriptive, meaningful names:
  • ✅ “Client Projects”
  • ✅ “Personal Research”
  • ❌ “Folder1”, “Misc”, “Stuff”
2

Limit Nesting Depth

Keep hierarchies manageable:
  • 2-3 levels: Ideal for most use cases
  • 4-5 levels: Maximum recommended depth
  • Deeper nesting: Consider reorganization
3

Use Icons Consistently

Develop an icon system:
  • 📁 General folders
  • 💼 Work-related
  • 🏠 Personal
  • 🚀 Projects
  • 📚 Resources
4

Regular Maintenance

Keep folders relevant:
  • Archive old folders
  • Consolidate similar folders
  • Remove empty folders
  • Update folder names as needed

Chat Organization

Organize chats by:
  • Project: One folder per project
  • Time Period: Monthly or quarterly folders
  • Topic: Subject-based organization
  • Client: Client-specific conversations

Metadata Usage

Performance Considerations

Efficient Queries

Batch Operations

Load all folders in one request instead of individual queries

Lazy Loading

Load folder contents only when expanded in UI

Cache Folder List

Cache folder structure for quick access

Optimize Depth

Limit folder nesting to reduce query complexity

Large Folder Trees

Optimize for scale:
  • Pagination: Consider pagination for large folder lists
  • Incremental Loading: Load subfolders on demand
  • Search Indexing: Use search for navigation instead of browsing
  • Flattening: Periodically reorganize to reduce depth

Integration with Other Features

Chats

Files & Collections

Custom Applications

Extend folders for your use case:

API Reference

List Folders

All folders with validation

Get Folder

Single folder details

Create Folder

New folder at root or nested

Update Folder

Modify name, metadata, or data

Move Folder

Change parent (reorganize)

Toggle Expansion

Update UI expansion state

Delete Folder

Remove folder ± contents
All endpoints require authentication and operate within user scope. Folders are private to each user.