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 referencesFolder Hierarchy
Creating Nested Folders
Build hierarchical structures:Moving Folders
Reorganize by changing parent:- Move to Root
- Move to Subfolder
- Validation
Folder Management
Listing Folders
Retrieve your folder structure:Get Folder Details
Retrieve a specific folder:- 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:- 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:Deleting Folders
Remove folders and handle contents:Deletion Options
- Delete Contents (Default)
- Preserve Contents
- 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
Permission Requirements
Folder deletion checks:Search & Discovery
Search by Name
Find folders matching specific names:Partial Search
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:- 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
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
Get Folder
Create Folder
Update Folder
Move Folder
Toggle Expansion
Delete Folder
All endpoints require authentication and operate within user scope. Folders are private to each user.