I only import raw files into Darktable, so when I delete them in that app, the JPGs get left on my memory card.
So I wrote a little Powershell script to clean up leftover files in the current directory, which I put on all of my memory cards. Works for me, but use at your own risk!
You may have to edit the script and replace DNG with whatever file format your camera produces.
cleanup.7z (396 Bytes)