Hundreds of md files remaining - eviltoast

I use Syncthing to sync my notes with other devices so I’m using the File System for Joplin Sync. Today I noticed I’m having almost 1000 md files in my folder . I changed my Note History duration to 90 days but it’s still there. Any way to solve this?

Edit : I was frustrated and I exported everything to a Jex file and deleted all the files and imported it back. Now it’s just a few files.