Files count way off

My Nextcloud is running smooth, but when i check the Files count in /settings/admin/serverinfo it seems way off.
nc-files
82199 compared to 784 in the client desktop count:
nc-files-folder
I previously indexed a large number of files on an external smb-connection, which are no longer attached, and I suspect there are broken references to those files, but that is just a guess.

I am on 15 RC2 but the problem has been persistent at least since NC 13.

  • Fully upgraded Raspbian OS
  • nginx version: nginx/1.14.1
  • mariadb Ver 15.1
  • PHP 7.2.9-1+b2

occ files:cleanup && occ files:scan --all outputs:

0 orphaned file cache entries deleted

and:

+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 119     | 2254  | 00:00:07     |
+---------+-------+--------------+

but the files count on /settings/admin/serverinfo does not change.

What might be the culprit?

Anyone? Can I reset the count somehow?
Help would be greatly appreciated :slight_smile: