I keep my Notes.app notes synced with my Gmail account.
In Gmail, I can see all my current notes in the Notes label and associated sublabels.
I can also see many older versions of current notes, and previously-deleted notes, not attached to any label.
Is there any search I can do in Gmail which will reliably find all messages that were created by Notes.app, so that I can delete old versions / "deleted" notes permanently? (I can find individual notes by searching for their subject line, but I no longer remember all the subject lines of all the notes I've deleted, and I can't find any search string that will reliably find Notes.app notes which no longer have the Notes label.)
Relatedly: is there any way I can configure Notes.app so that when it removes a note (or older version of a note) from the Notes label (or a sublabel) it moves it into the trash, rather than leaving it cluttering up my messages archive?