Simple plugin that trashes orphaned attachments (or all files) using a command
The plugin provides three commands which can be ran from command palette (default keybinding is Ctrl + P)

The plugin will always ask you before trashing files

You can install this plugin from within Obsidian by doing the following:
Community pluginsSafe mode is offBrowse under Community pluginsNuke Orphans and click on itInstallEnable.obsidian/plugin/You will have to manually enable the plugin in settings afterwards