SquirrelDisk provides an intuitive drag-and-drop interface for deleting files and folders. This guide explains how to safely remove unwanted items and reclaim disk space.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/adileo/squirreldisk/llms.txt
Use this file to discover all available pages before exploring further.
The Deletion Interface
At the bottom of the file list sidebar, you’ll find the deletion area:- Empty state: “Drag file and folders here to delete”
- With items: Shows count and offers options to clear or delete
- Dashed border: Visual indicator for the drop zone
Adding Items to the Deletion List
Using Drag and Drop
Drag to deletion area
While holding, drag the item down to the dashed box at the bottom of the sidebar.
Visual Feedback
When items are added to the deletion list:- The item displays a red border in the file list
- The deletion area updates to show the count:
2 files selected - The item remains visible in the file list (not removed yet)
You can add multiple items to the deletion list before executing the deletion. Navigate through different folders and continue adding items.
Reviewing Items Before Deletion
Before executing the deletion, you should review your selection:Deletion Counter
The deletion area shows:- How many items are queued for deletion
- Link to clear if you change your mind
Visual Indicators in File List
Items selected for deletion are marked with:- Red border (
border border-red-800) - Darker red border on hover (
hover:border-red-900)
Clearing the Selection
If you want to start over or change your mind:
This action:
- Empties the deletion list
- Removes all visual indicators
- Returns the deletion area to its empty state
- Does not delete any files
Executing the Deletion
When you’re ready to permanently delete the selected items:Deletion Progress
While deletion is in progress:- The Delete button becomes disabled
- The button text changes to show progress:
- The counter updates in real-time as each item is deleted
- You cannot add more items or cancel during deletion
How Deletion Works
File System Operations
SquirrelDisk uses platform-native APIs to delete items:- Folders: Recursively deleted with all contents using
removeDir({ recursive: true }) - Files: Deleted directly using
removeFile() - Hybrid handling: If a folder appears to be a file (due to tree trimming), both methods are attempted
Error Handling
If an item fails to delete:- The error is logged to the console
- Deletion continues with remaining items
- Failed items are not marked as successfully deleted
- The chart updates only for successfully deleted items
You may encounter errors if files are:
- In use by another program
- Protected by system permissions
- On a read-only filesystem
- Already deleted by another process
Real-Time Chart Updates
SquirrelDisk’s visualization updates immediately after deletion:Automatic Recalculation
- Size updates: All ancestor folders have their sizes reduced
- Structure updates: Deleted items are removed from the tree
- Re-partitioning: The sunburst chart recalculates arc sizes
- Smooth animation: The chart animates to reflect the new state
Visual Changes
After deletion, you’ll see:- Deleted arcs fade out and disappear
- Remaining arcs expand to fill the space
- Parent folder sizes decrease
- File list updates to remove deleted items
Deletion Safety Tips
Before Deleting
Items to Be Cautious With
What You Cannot Recover
Unlike moving to Trash/Recycle Bin:- Items are immediately removed from the filesystem
- No “undo” or “restore” functionality exists
- File recovery software may or may not work
- Solid-state drives make recovery nearly impossible
Best Practices
Start Small
- Begin by deleting a single, unimportant file
- Verify it deletes successfully
- Gradually increase to larger deletions
Use Right-Click to Verify
Before adding items to the deletion list:- Right-click the item in the file list
- Verify the opened location matches what you expect
- Confirm you want to delete that specific item
Delete in Batches
Rather than selecting many items at once:- Delete 5-10 items at a time
- Verify the chart updates correctly
- Ensure nothing unexpected was deleted
- Continue with the next batch
Platform-Specific Behaviors
Windows
- Paths are converted from forward slashes to backslashes
- File Explorer opens on right-click with the item selected
macOS
- Finder opens on right-click with the item revealed
- Uses native
open -Rcommand for file revelation
Linux
- Default file manager opens the parent directory
- Uses
xdg-openfor cross-desktop compatibility - May not select the specific file, but opens the folder
Troubleshooting
Items Won’t Delete
If deletion fails:- Check if the file is open in another program
- Verify you have write permissions to that location
- Ensure the filesystem isn’t read-only
- Try closing all programs and attempting again
Chart Doesn’t Update
If the chart doesn’t update after deletion:- Check the browser console for error messages
- Verify the deletion actually occurred using your file manager
- Try navigating to a parent directory and back
- If needed, rescan the disk to get accurate data

