Mr Jahanbin76 downloadsAutomatically find unused attachments, review them in a managed bilingual trash, restore them to their original location, or delete them permanently.
Find attachments that appear unused, review them safely, and decide what should happen.
A scan never moves or deletes anything. It only creates a review list. Files move to trash only after you explicitly select them and confirm the action.
A vault can gradually collect screenshots, PDFs, audio, video, exported files, and documents that are no longer referenced. Deleting them manually is risky because a file may still be used in a note property, Canvas, or Base.
Safe Attachment Trash adds a review-first workflow:
You control when scanning runs.
In both modes, scanning is read-only. It never moves or deletes files.
This is a review list of files that currently appear unreferenced.
Available actions:
Before moving anything, the plugin scans the selected files again. If a file became referenced after the original scan, it is skipped.
Use this for files that are intentionally kept even when they are not linked from a note.
Examples:
Protected files stay in their original folders. They are only excluded from future suggestions. Use Suggest again to remove protection.
The Trash tab shows files managed through the local trash workflow.
You can:
The scanner treats an attachment as used when it is referenced through supported local references, including:
.base files.Examples that are treated as references:
---
cover: "[[Attachments/book-cover.jpg]]"
images:
- "[[Attachments/page-1.png]]"
- "[[Attachments/page-2.png]]"
---
![[Attachments/diagram.png]]
[Open the PDF](Attachments/reference.pdf)
Remote URLs such as https://... are not treated as local vault files.
| Setting | What it does |
|---|---|
| Language | Automatically follow the app language, or force Persian/English. |
| Scan automatically when the panel opens | Refresh the Unused list whenever the panel opens. Disable it for a fully manual workflow. |
| File extensions | Choose which file types are included in scans. Separate extensions with commas. Use * for all extensions. |
| Excluded folders | Skip complete folders and their subfolders. Separate paths with commas or new lines. |
| Minimum file age | Ignore files newer than the chosen number of hours. Useful for files you recently added but have not linked yet. |
| Restore conflict behavior | Rename the restored copy, skip it, or overwrite an existing file at the original path. |
| Unknown-path recovery folder | Destination for trashed files whose original location cannot be determined. |
| Check Canvas files | Prevent files referenced in Canvas from being suggested as unused. |
Even with these safeguards, keep a backup of important vaults before using any cleanup tool.
The plugin works locally inside the vault. It does not require an account and does not include telemetry, advertisements, or network requests.
Install from:
Settings → Community plugins → Browse → Safe Attachment Trash
After installation, enable it from the Installed plugins list.
When reporting an issue, include:
فایلهای پیوستِ ظاهراً بلااستفاده را پیدا کن، قبل از هر کاری بررسیشان کن و خودت تصمیم بگیر چه اتفاقی برایشان بیفتد.
اسکن هیچ فایلی را جابهجا یا حذف نمیکند. اسکن فقط یک فهرست برای بررسی میسازد. فایل تنها زمانی به Trash میرود که خودت آن را انتخاب و عملیات را تأیید کنی.
با گذشت زمان ممکن است تعداد زیادی تصویر، PDF، فایل صوتی و ویدئویی، خروجی برنامهها و سند داخل Vault جمع شود. حذف دستی این فایلها خطرناک است؛ چون ممکن است فایل هنوز داخل یک Property، Canvas یا Base استفاده شده باشد.
Safe Attachment Trash یک فرایند امن و مبتنی بر بررسی ایجاد میکند:
زمان اجرای اسکن کاملاً در اختیار کاربر است.
در هر دو حالت، اسکن فقط خواندنی است و هیچ فایلی را جابهجا یا حذف نمیکند.
این بخش فایلهایی را نشان میدهد که در اسکن فعلی هیچ ارجاع پشتیبانیشدهای برایشان پیدا نشده است.
کارهایی که میتوانی انجام دهی:
افزونه درست قبل از انتقال، فایلهای انتخابشده را دوباره بررسی میکند. اگر فایلی بعد از اسکن اولیه در جایی استفاده شده باشد، انتقال آن رد میشود.
این بخش برای فایلهایی است که عمداً نگه داشتهای، حتی اگر فعلاً داخل یادداشتها لینک نشده باشند.
مثالها:
فایل محافظتشده جابهجا نمیشود و در همان مسیر اصلی باقی میماند. فقط از اسکنهای بعدی کنار گذاشته میشود. با گزینه دوباره پیشنهاد بده میتوانی محافظت را برداری.
این بخش فایلهایی را نشان میدهد که از طریق جریان Trash محلی مدیریت شدهاند.
در این بخش میتوانی:
فایل زمانی استفادهشده محسوب میشود که از طریق یکی از ارجاعهای محلی پشتیبانیشده به آن اشاره شده باشد، از جمله:
.base.نمونه Propertyهایی که بهعنوان استفاده از فایل شناخته میشوند:
---
cover: "[[Attachments/book-cover.jpg]]"
images:
- "[[Attachments/page-1.png]]"
- "[[Attachments/page-2.png]]"
---
![[Attachments/diagram.png]]
[بازکردن PDF](Attachments/reference.pdf)
آدرسهای اینترنتی مانند https://... بهعنوان فایل محلی Vault در نظر گرفته نمیشوند.
| تنظیم | کاربرد |
|---|---|
| زبان | استفاده خودکار از زبان برنامه یا انتخاب دستی فارسی و انگلیسی. |
| اسکن خودکار هنگام بازشدن پنل | با هر بار بازکردن پنل، فهرست بلااستفادهها تازه میشود. برای فرایند کاملاً دستی خاموشش کن. |
| پسوند فایلها | مشخص میکند چه نوع فایلهایی اسکن شوند. پسوندها را با کاما جدا کن و برای همه پسوندها از * استفاده کن. |
| پوشههای مستثنا | یک پوشه و تمام زیرپوشههایش را از اسکن خارج میکند. مسیرها را با کاما یا خط جدید جدا کن. |
| حداقل عمر فایل | فایلهای جدیدتر از تعداد ساعت مشخصشده را نادیده میگیرد؛ برای فایلهایی مفید است که تازه اضافه شدهاند و هنوز لینک نشدهاند. |
| برخورد با تداخل هنگام بازگردانی | در صورت وجود فایل همنام، نسخه جدید بسازد، عملیات را رد کند یا فایل موجود را جایگزین کند. |
| پوشه بازیابی مسیرهای نامشخص | مقصد فایلهایی که مسیر اصلیشان قابل تشخیص نیست. |
| بررسی فایلهای Canvas | فایلهای استفادهشده داخل Canvas را از فهرست بلااستفاده خارج میکند. |
با وجود این موارد، قبل از استفاده از هر ابزار پاکسازی از Vaultهای مهم نسخه پشتیبان داشته باش.
تمام پردازشها بهصورت محلی داخل Vault انجام میشوند. افزونه به حساب کاربری نیاز ندارد و شامل تلهمتری، تبلیغات یا درخواست شبکه نیست.
از این مسیر نصب کن:
Settings → Community plugins → Browse → Safe Attachment Trash
بعد از نصب، افزونه را از فهرست Installed plugins فعال کن.
هنگام ثبت مشکل این اطلاعات را بنویس:
FileManager.trashFile() so the user's configured deletion behavior is respected.minAppVersion at 1.8.7.MIT