It would be nice to have a possibility to clear the cache.ndk file from inside the notes client, it could be through the preferences menu.
Sometimes it is necessary to perform a restore and 'merge' a restored replica with the production replica. (by replicating the two together). However to do this you need to clear the deletion stubs from one/both replicas. You can try to do this by setting the Space Saving value Delete Documents not ...