Skip to content

A plugin for Obsidian to help clean up files in your vault

License

Notifications You must be signed in to change notification settings

husjon/obsidian-file-cleaner-redux

Repository files navigation

File Cleaner Redux

File Cleaner Redux is a plugin for Obsidian (https://obsidian.md) to help remove unused / empty markdown files and attachments based on a few simple user-defined rules.

Based on https://github.com/Johnson0907/obsidian-file-cleaner

What this plugin does

  • Removes Markdown files with a size of 0 bytes.
  • Removes user-defined attachment files (e.g: jpg, jpeg, png, gif, svg, pdf)
  • Support for cleaning empty files containing only specific frontmatter (Optional) (See: #16)
  • Removes empty folders recursively (Optional)
  • Folder exclusion / inclusion (Optional)
  • Set deletion location
    • Move to system trash
    • Move to Obsidian trash (.trash folder)
    • Permanently delete
  • Preview of list of files and folders that will be removed (Optional)
  • Run on Startup (Optional)
  • Supports the following external plugins:
    • Admonition (as of v1.0.0 - #57)

How to use the plugin

  • Click the "File Cleaner" ribbon icon or add a Keybinding for the Clean files command.

Screenshots

Plugins Settings (showing default values)

Options

Preview of deleted files

Preview deleted files confirmation

Hotkeys

Hotkeys

Known issue

  • Attachments used in Admonition code blocks are not recognized