Under the assumption this plugin only deletes images, one could remove important, external assets, like done below:
My specific usecase involves dynamic plotting within notes, which then requires me to have d3.js in the vault's root for the Plotly plugin. This file is also outside the configured Attachments folder, which I naively assumed would be the only target of this plugin, and which is not currently configurable to become the only target¹.
¹ Obsidian attachments folders are always inside the Vault, so the "Exclude Full Paths" option is not applicable for trying to ignore anything outside said folder. Excluding path/to/vault also excludes path/to/vault/attachments. The "Exclude subfolders" is similarly not applicable, since it's the parents of Attachments that need to be ignored.
Possible Solutions
Check file extensions before clearing, or change the whole premise of the plugin to be "Clear Files" instead of "Clear Images"
Have either an "Include-only" path setting, or a toggle for "Only clear within configured Attachments folder"
Scenario
Under the assumption this plugin only deletes images, one could remove important, external assets, like done below: My specific usecase involves dynamic plotting within notes, which then requires me to have d3.js in the vault's root for the Plotly plugin. This file is also outside the configured Attachments folder, which I naively assumed would be the only target of this plugin, and which is not currently configurable to become the only target¹.
¹ Obsidian attachments folders are always inside the Vault, so the "Exclude Full Paths" option is not applicable for trying to ignore anything outside said folder. Excluding
path/to/vault
also excludespath/to/vault/attachments
. The "Exclude subfolders" is similarly not applicable, since it's the parents ofAttachments
that need to be ignored.Possible Solutions