Synopsis
Description
View deleted items:- File Listing - Shows all trashed items with metadata
- Size Information - Displays individual and total sizes
- Deletion Dates - When items were moved to trash
- Restore Instructions - How to recover items
Examples
View Trash Contents
Empty Trash
Empty trash:Item Display Format
Files
File display:- 📄 Icon - Indicates file type
- Size - Human-readable file size
- Trashed Date - When item was deleted
- ID - Unique identifier for restoration
Directories
Folder display:- 📁 Icon - Indicates directory
- Size - Total size of all contents
- Recursive Calculation - Includes all subdirectories and files
Trash Item Naming
Naming Convention
Items renamed with timestamps:config.json
→config.json.1726405815234
project-folder
→project-folder.1726405815234
Timestamp Format
Unix epoch milliseconds:1726405815234
= September 15, 2025, 10:30:15.234 AM
Size Formatting
Human-readable format:Range | Format | Example |
---|---|---|
< 1 KB | Bytes | 512 B |
< 1 MB | Kilobytes | 456.7 KB |
< 1 GB | Megabytes | 2.3 MB |
≥ 1 GB | Gigabytes | 1.2 GB |
Sorting
Deletion order:- Newest first - Most recently deleted items at top
- Chronological - Based on deletion timestamp
- Mixed types - Files and folders intermixed by date
Directory Size Calculation
Folder size represents total contents:Error Handling
Permission Issues
Corrupted Trash
Damaged trash directory:Management Actions
After Viewing Trash
Next steps:Selective Restoration
Identify items for restoration:- Note the ID - Copy the unique identifier
- Run restore - Use
claude-mem restore
- Select item - Choose from interactive list
Storage Location
Storage location:Don’t manipulate trash directory directly. Use
claude-mem restore
and claude-mem trash empty
.Performance Considerations
Large Directories
Large folders:- Size calculation may take time
- Progress not shown during scan
- Consider using
claude-mem trash empty
for large cleanups
Many Items
Many items:- All items displayed (no pagination)
- Consider regular cleanup
- Use
claude-mem trash empty
periodically
Integration
With Scripts
Check status programmatically:With Cleanup Workflows
Regular maintenance:Troubleshooting
Missing Items
Missing items:- Check spelling - Verify original filename
- Check timing - Item might not be in trash
- Check permissions - Ensure read access to trash
- Check location - Verify trash directory path
Size Discrepancies
Size discrepancies:- Hidden files - May include system files
- Symlinks - Links counted as files
- Sparse files - May report differently
Restore Issues
Restore issues:- Check IDs - Ensure correct identifier format
- Check permissions - Verify write access to destination
- Check space - Ensure sufficient disk space
Related Commands
See Also
restore
- Recover deleted itemsload-context
- Trash status in context- File Management - Understanding deletion