By the way, those files belong to a note I have deleted. The note does not exist anymore. Still, for some reason, Joplin tries do synchronize them (which it shouldn’t) and complains they are not there (which it shouldn’t either, because the files are there).

Ok, this sounds suspicious, as if some status marking would be off.