Empty Folders Remover
January 24, 2026 ยท View on GitHub
A simple and efficient Visual Studio Code extension that helps maintain cleanliness in your projects by finding and removing empty folders.
Features
- ๐ Recursive search for empty folders in your project
- ๐๏ธ Automatic removal of found empty directories
- ๐งน Cascade removal: removes entire chains of empty folders (children โ parents)
- ๐ Multi-root workspace support: processes all folders in your workspace
- ๐ Display of removed folders count
- โก Quick execution via command palette
- ๐ก๏ธ Safe operation with error notifications
Installation
- Open VS Code
- Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
- Search for "Empty Folders Remover"
- Click Install
Usage
- Open your project folder in VS Code
- Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
- Type "Remove Empty Folders"
- Press Enter
After execution, the extension will show the number of empty folders removed.
Requirements
- Visual Studio Code version 1.96.0 or higher
Safety Notes
- The extension only removes completely empty folders
- It's recommended to backup your project before using
- Folders containing hidden files (like .gitkeep) are not considered empty and won't be removed
How it works
The extension performs a recursive scan of your project directory. A folder is considered empty if it contains no files and all of its subfolders are empty. Empty folders are removed in a safe order from deepest to parent to avoid conflicts.
Contributing
Contributions are welcome! Feel free to submit issues and pull requests on our GitHub repository.
License
This extension is released under the MIT License.
Support
If you encounter any issues or have suggestions for improvements, please open an issue on our GitHub repository.
Enjoy cleaner projects! ๐