Before I saw your latest post, it occurred to me that Batcher's had achieved the deletion that I wanted so I planned to use it.
I believed that my own batch file was good at copying the (latest) file back into C:\Data\Firefox\Bookmarks but that is was failing to delete file(s) already there, so ran my own batch file. Lo and behold - the dummy disappeared but several JSONLZ4s appeared, proving that my original batch file IS CAPABLE of deleting; and that I had got confused, and so misread the results - thinking it would not delete, but the actual problem being different. I have now CONFIRMED that my own code DOES delete and I need not look any further for a solution for THAT.
I am still not satisfied with that batch file, but for a different reason, so will do a new post stating the ACTUAL problem that needs solving.
Actually - NOT a NEW post, but resume one from 2021 which at that time I said was successful, but is no longer.
viewtopic.php?f=3&t=10268&e=1&view=unread#unread
batchfile fails to delete unwanted files
Moderator: DosItHelp