Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Remove Empty Folders

fnyafnya3k downloads

Easily remove empty folders.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

This is an Obsidian plugin that removes empty folders.

Caution !!

Be sure to back up Obisidan data before running this plugin !!

In the worst case scenario, data may be lost.

How to use

Select the notes you want to merge in the file explorer.

Select the folder(s) in the File Explorer from which you want to remove the empty folder(s).

Right click on the selection and select Remove empty folders.

In the image example, subfulder1-2 and subfulder1-3 will be removed.

Limitations

This plugin removes empty folders at the point of execution. Therefore, empty folders as a result of running the plugin will not be removed.

You may need to run the plugin several times to remove all empty folders.

Troubleshootings

In the unlikely event that an unexpected folder is deleted, please check inside the ObsidianValtPath/.trash folder.

The plugin moves the empty folder to the obsidian .trash folder rather than physically removing it, so the contents can be checked and recovered as shown in the following image.

HealthFair
ReviewCaution
About
Remove empty folders from selected locations in the file explorer. Run repeatedly to clear nested empties; removed folders are moved to Obsidian's .trash for easy recovery.
FoldersFilesSidebar
Details
Current version
0.0.3
Last updated
3 years ago
Created
3 years ago
Updates
3 releases
Downloads
3k
Compatible with
Obsidian 0.0.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
fnyafnya
github.com/fnya
GitHubfnya
  1. Community
  2. Plugins
  3. Folders
  4. Remove Empty Folders

Related plugins

Custom File Explorer sorting

Manual or automatic config-driven reordering and sorting of files and folders in File Explorer.

Flexplorer

Enhance the file explorer with custom sorting, pinning, and hiding.

File Explorer Note Count

See the number of notes in each folder within the file explorer.

File Tree Alternative

An alternative file tree view with separate folder and file panes.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Recent Files

Display a list of recently opened files.

Hide Folders

Quickly toggle the visibility of specific folders in the file navigator based on configured names. Useful for hiding attachment folders.

Reveal Active File Button

Add a button to the top of the File Explorer, to reveal the active file.

Quick Explorer

Perform file explorer operations (and see your current file path) from the title bar, using the mouse or keyboard.

Novel word count

Display a word count, page count, creation date, or other statistics for each file, folder and vault in the File Explorer pane.