bishop6722 downloadsMove deleted media to an archive folder instead of the trash, and archive media that no note uses anymore.
Deleting media in Obsidian moves it to Media/Archive instead of the trash. Deleting it from the archive removes it for real.
It also sorts on its own: unused files in Media/Uploads move to the archive, and archived files a note uses again move back. New files get 60 seconds before they can be archived.
npm install && npm run build
Copy main.js and manifest.json to <vault>/.obsidian/plugins/media-archive/ and enable it. Needs Obsidian 1.13+.
To release: bump manifest.json, push a matching tag (1.0.1), publish the draft release.
MIT