Can I automatically remove all unlinked images?

Things I have tried

Searching through the file system and deleting these images manually, but I have to look in the search function to see if the images are linked. This is a problem because there is a limit to my file sync service so if I have too many images that I pasted and deleted from the note afterwards (but not the entire system), it’ll take up space.

What I’m trying to do

Automatically remove unlinked images using settings or something else.

Try Clear Unused Images. It is a plugin.

There is another choice:

find-unlinked-files