How do I remove Joplin notes that no longer physically exist on the server?

Maybe one of you have experienced this as well. I had installed both NC Notes app as well as Joplin on a number of clients. The formats of these notes are dissimilar and do not match well, so I decided to move Joplin to its own folder. It turned out there were less than 100 Joplin notes in the users’ Notes folder, that weren’ t critical.
So I created an extra folder in the users’ Files root and proceeded to delete the Joplin notes on the server. But now those joplin notes still show in the users’ files web-interface. I can’ t seem to get rid of them in a browser, and get error messages.

Has anybody experienced this? Can anybody point me to how to remedy this?

Trying to manually delete them from the Notes app does not work.

In the logs, I came across the following:

[index] Error: OCP\Lock\LockedException: “Notes/Joplin/e836408f6fd94db8a185d6c44ff131a5.md” is locked at <>

  1. /var/www/cloud/lib/private/Files/View.php line 1151
    OC\Files\View->changeLock(“/myname/files/N … d”, 2)
  2. /var/www/cloud/lib/private/Files/View.php line 716
    OC\Files\View->basicOperation(“unlink”, “/myname/files/N … d”, [“delete”])
  3. /var/www/cloud/lib/private/Files/Node/File.php line 131
    OC\Files\View->unlink(“/myname/files/N … d”)
  4. /var/www/cloud/apps/notes/lib/Service/NotesService.php line 226
    OC\Files\Node\File->delete()
  5. /var/www/cloud/apps/notes/lib/Controller/NotesApiController.php line 208
    OCA\Notes\Service\NotesService->delete(629494, “myname”)
  6. /var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php line 170
    OCA\Notes\Controller\NotesApiController->destroy(629494)
  7. /var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php line 99
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Notes\Contro … {}, “destroy”)
  8. /var/www/cloud/lib/private/AppFramework/App.php line 125
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Notes\Contro … {}, “destroy”)
  9. /var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main(“OCA\Notes\Con … r”, “destroy”, OC\AppFramework\ … {}, {id: “629494”,_r … "})
  10. <>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({id: “629494”,_r … "})
  11. /var/www/cloud/lib/private/Route/Router.php line 299
    call_user_func(OC\AppFramework\ … {}, {id: “629494”,_r … "})
  12. /var/www/cloud/lib/base.php line 1008
    OC\Route\Router->match(“/apps/notes/api/v0.2/notes/629494”)
  13. /var/www/cloud/index.php line 38
    OC::handleRequest()

DELETE /index.php/apps/notes/api/v0.2/notes/629494?
from 192.168.123.254 by myname at 2020-05-01T10:51:21+00:00

And:

[ransomware_protection] Warning: Prevented upload of Notes/Joplin/.lock because it matches extension pattern “.lock”
GET /index.php/apps/notes/api/v0.2/notes?pruneBefore=1588318594
from 192.168.123.254 by myname at 2020-05-01T12:50:49+00:0myname0
and then:
[PHP] Error: file_get_contents(/data/cloud/myname/files/Notes/00a2ac8f19e3459e99578b0c07d235f9.md): failed to open stream: No such file or directory at /var/www/cloud/lib/private/Files/Storage/Local.php#218

GET /index.php/apps/notes/api/v0.2/notes?pruneBefore=1588318594
from 192.168.123.254 by myname at 2020-05-01T10:51:23+00:00

Thanks in advance!