Notes history not trimmed

Joplin for Desktop 1.0.242 (prod, win32), Win10 64bit

My dropbox folder contains over 240 encrypted *.md files that are over 90 days old (that’s the number of days notes history is supposed to be kept for). If you take out fewer than 50 actual notes currently in Joplin, at least 190 out of 240 files are probably older deleted notes that should have been deleted from the folder. That’s unless I missed something about how Joplin saves the notes.