Obsidian – How to detect and delete orphan notes and attachments

One functionality I miss in Obsidian is the possibility that automatically when you delete a note that includes an attached file and this file is not used in any other note, you had the possibility to delete that file.
This way wouldn’t have a bunch of files that are not linked to any other note and just consume space in your folders.

After searching a bit I’ve found a pair of plugins that seems that comply with these requirements.

File Cleaner

Nuke Orphans Obsidian Plugin

Both plugins also can delete orphan notes.

At the moment I’ve just tried out is File Clear plugin and it seems to work fine.
Once is enabled this plugin will create a new ribbon icon that will make the job done.