File was deleted from server, but still visible on web-ui (also for desktop-client)

I’m running the following:

Nextcloud 12
CentOS Linux 7.2.1511
Apache 2.4.6
PHP 7.0.13
MySQL 5.5.52

After deleting all of the non-existent files, the client started to sync again… then stopped later on in the day with a new list of files. I think I’ve come up with the workflow that causes this issue (at least for me):

  1. All files are owned by me (admin) and shared to users
  2. User copies a folder containing files into local share
  3. User makes sub folder, and moves files into sub folder
  4. Nextcloud creates new folder and adds files to folder, but doesn’t delete link to original location

This happens constantly during the day, so the daily list of dead files is huge.

As a test, users are now going to create folder outside of Nextcloud share (or copy to folder outside of Nextcloud share), make all changes, and then move to new location - will know next week if this works.