Delete Nested Files / Remove Expand Icon
Clean up a parent file by removing every nested child beneath it. The parent returns to a single file with no expand icon.
When to use
- When you want to remove all nested children from a component
- When you want to remove the expand icon from a file that has no children
How to use
- Right-click on a file with nested children in the File Nesting Explorer
- Select "Delete Nested Files / Remove Expand Icon"
- Confirm the deletion in the dialog
- The parent file collapses back to a single file with no children
Example
Before:
Dashboard.tsx
├── Header.tsx
├── Content.tsx
└── Footer.tsx
After running the command:
Dashboard.tsx → No longer expandable
warning
This action is destructive and will delete all nested files.