NextCloud file and folder size not updating in web browser

The folder and file size information is not correct in the NextCloud web browser user interface.

When I upload a file/files into a folder, the size information increases correctly, however when I delete the file contents of that folder, the size information doesn’t change even if the folder is empty.

Is this a bug, has anyone encountered the same issue and managed to resolve it?