A file cleaner plugin for Obsidian.

Overview

File Cleaner

This is a plugin for Obsidian (https://obsidian.md).

It can help you clean up empty files and unused attachments in the obsidian vault.

Note

  • Empty Files
    • Files with a size of 0 bytes.
  • Unused Attachments
    • Support jpg, jpeg, png, gif, svg, pdf.
  • Settings
    • Move to system trash
    • Move to Obsidian trash (.trash folder)
    • Permanently delete

How to use

  • Click the ribbon icon of "File Cleaner".

Known issue

  • Attachments used in Admonition code blocks are not recognized
Comments
  • The image is actually referenced, but will be treated as unreferenced, resulting in accidental deletion.

    The image is actually referenced, but will be treated as unreferenced, resulting in accidental deletion.

    Hi,

    If using the admonition plugin, use the following code to reference the image. The image is actually referenced, but will be treated as unreferenced, resulting in accidental deletion.

    ````ad-灵感
    collapse: open
    title: 测试
    ![[202008271317.png]]
    ````
    

    Looking forward to your reply! Best regards.

    opened by tyf2018 2
  • Filter by file type

    Filter by file type

    Hello,

    Would it be possible to have an option to filter by file-type?

    The use case is that I have pdf I do not want to delete, no matter whether they are linked or not -- a contrario, I would like to only target .jpg or .png.

    Thank you,

    opened by viewsourc3 1
  • Potential issue

    Potential issue

    Hi @Johnson0907

    Nice idea for a plugin! Just want to throw out a word of caution: due to this (as far as I know still unrersolved) bug, Mac users might want to be extra careful when using it.

    opened by luckman212 1
  • Preview of what gets cleaned

    Preview of what gets cleaned

    It'd be handy to be able to preview which files get cleaned and then a button to confirm it. That way one doesn't have to worry that files get removed which shouldn't be removed.

    Obviously this could also be an opt-in flag or something to not disrupt the flow of existing users which don't want to have that :)

    opened by juristr 0
  • [Feature Request]Only delete in the include folders

    [Feature Request]Only delete in the include folders

    I find this plugin only has an option for excluding folders. Actually, I only want to delete files in the attachment folder. I'm hoping you can add such an option. That will be really helpful. Thanks!

    opened by Seraphli 0
  • Include empty folders in cleanup

    Include empty folders in cleanup

    I'm using RainCat1998/obsidian-custom-attachment-location plugin that creates a folder associated with the note an image is pasted in. I've used your plugin and it works great, though it would be cool if it can get rid of the empty folders left behind too.

    opened by HonestyK 0
  • Excalidraw

    Excalidraw

    Hi, is it possible to have this plugin act on orphaned excalidraw drawings too? I'll often find my Excalidraw folder filling up with old or empty drawings over time and it'd be nice to have them cleaned up automatically somehow. This might be an issue better suited for the Excalidraw plugin though.

    opened by apotenza92 0
Releases(0.1.5)
Owner
Johnson
Johnson
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
A plugin for Obsidian (https://obsidian.md) that adds a button to its search view for copying the Obsidian search URL.

Copy Search URL This plugin adds a button to Obsidian's search view. Clicking it will copy the Obsidian URL for the current search to the clipboard. T

Carlo Zottmann 6 Dec 26, 2022
This is a plugin for Obsidian (https://obsidian.md). Can open document with `.html` and `.htm` file extensions.

Obsidian HTML reader Plugin This is a plugin for Obsidian (https://obsidian.md). Can open document with .html and .htm file extensions. Obsidian HTML

null 37 Dec 27, 2022
File Hider - This is a plugin for Obsidian that allows hiding specific files and folders from the file explorer

File Hider - This is a plugin for Obsidian that allows hiding specific files and folders from the file explorer

Oliver 24 Dec 16, 2022
A quickstart AWS Lambda function code generator. Downloads a template function code file, test harness file, sample SAM deffiniation and appropriate file structure.

Welcome to function-stencil ?? A quickstart AWS Lambda function code generator. Downloads a template function code file, test harness file, sample SAM

Ben Smith 21 Jun 20, 2022
Serve file server with single zip file as file system in Deno.

zipland Serve file server with one-single zip file in Deno. Support zip just zip32 with deflated or uncompressed serving plaintext deflate Examples Yo

Yongwook Choi 18 Nov 2, 2022
Feel free to create new file, don't hesitate to pull your code, the most important thing is that the file name here must match your nickname so that file does not conflict with other people.

Hacktoberfest Indonesia Apa Itu Hacktoberfest ? Hacktoberfest adalah acara tahunan yang bertujuan untuk mendorong berkontribusi kedalam ekosistem open

Juan Daniel 5 Dec 15, 2022
An Obsidian plugin to paste Excel tables as Markdown tables in Obsidian editor.

Obsidian Excel to Markdown Table An Obsidian plugin to paste Excel tables as Markdown tables in Obsidian editor. Demo You can paste the copied Excel d

Ganessh Kumar 108 Jan 4, 2023
An Obsidian plugin that lets you browse the web within Obsidian.

Obsidian Web Browser An Obsidian plugin that allows you to browse the web within Obsidian using v1.0 tabs. The core functionality of the plugin, rende

Dion Tryban 102 Dec 28, 2022
An obsidian plugin allowing you to register and view different file extensions in a modular manner.

Obsidian Custom File Extensions Plugin This is a plugin for Obsidian to allow associaton of file type extensions with different in-app views via setti

null 5 Dec 6, 2022
Obsidian-dataview-table-filter-menu - Dynamically created filter menu for dataview tables in obsidian

Dataview table Filter Menu for Obsidian Dynamically created filter menu for data

shiro 17 Sep 24, 2022
Obsidian-Snippet-collection - A collection of snippet to customize obsidian

This repo is a collection of CSS snippets for Obsidian.md. To install them on PC

Mara 110 Dec 22, 2022
Obsidian Web: Connect your browser with your Obsidian notes

Obsidian Web: Connect your browser with your Obsidian notes This is an unofficial Chrome extension for Obsidian that lets you send content from the we

Adam Coddington 97 Jan 3, 2023
A file manager plugin for logseq(Search unused assets file)

logseq-plugin-file-manager Search files from assets and draws but not used in journals or pages. Please backup files before operation, and before dele

Hayden Chen 17 Dec 23, 2022
Get a diff view of your Obsidian Sync, File Recovery and Git version history

Version History Diff (for Sync and File Recovery Core plugins and Git) Note This plugin uses private APIs, so it may break at any time. Use at your ow

null 39 Dec 26, 2022
A tool to get plugin statistics of Obsidian plugin ecosystem.

Obsidian Plugin Stats A tool to get plugin statistics of Obsidian plugin ecosystem. Usage You can use this tool to see the plugins that has hit commun

Ganessh Kumar 27 Dec 25, 2022
An obsidian toolbar plugin, modified from the Cmenu plugin

obsidian-editing-toolbar Plugin Thanks to the cmenu plugin, which gave me a lot of inspiration, but this plugin has not been maintained for more than

null 321 Dec 29, 2022
With this File Manager prepared for PHP/Js, you can perform all file operations on your server without any problems.

FileManager With this File Manager prepared for PHP/Js, you can perform all file operations on your server without any problems. Instead of downloadin

Tanzer Demir 4 Sep 23, 2022