Available quota wrong after moving files on server


I’m running a small Nextcloud 25.0.1 instance for private usage on a Ubuntu system. A user has uploaded a large amount of data. I moved these files directly on the server to another drive (provided as external storage available to all users).

Now I activated the quota option for users. The size of these files is still assigned to the uploading user.

I already have run sudo -u www-data php occ files:scan but the problem still persists.

Is there something else I could do and can I exclude the files from external storage from the quota calculation?


When you say you moved these files directly on the server, do you mean that you moved them in the server’s data folder?

I don’t think it does. I could be mistaken, but it sounds more like it still thinks that space is consumed by the user in the original folder.