Can't delete files from client or web UI

The related log is as follows:
{“reqId”:“Mx4AMbmBbNt6NXKPd2rs”,“level”:3,“time”:“2023-02-22T11:00:13+00:00”,“remoteAddr”:“127.0.0.1”,“user”:“admin”,“app”:“PHP”,“method”:“DELETE”,“url”:“/nextcloud/remote.php/dav/files/admin/TEMP/Readme.md”,“message”:“Cannot declare class OCA\Files\Activity\Settings\FileChanged, because the name is already in use at /var/www/html/nextcloud/apps/files/lib/Activity/Settings/FileChanged.php#26”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Safari/537.36 Edg/103.0.1264.49”,“version”:“24.0.2.1”}
{“reqId”:“F6zv7X2DMYG89euvvYyZ”,“level”:3,“time”:“2023-02-22T11:00:13+00:00”,“remoteAddr”:“127.0.0.1”,“user”:“admin”,“app”:“PHP”,“method”:“DELETE”,“url”:“/nextcloud/remote.php/dav/files/admin/TEMP/%E4%BD%93%E6%A3%80.XLS”,“message”:“Cannot declare class OCA\Files\Activity\Settings\FileChanged, because the name is already in use at /var/www/html/nextcloud/apps/files/lib/Activity/Settings/FileChanged.php#26”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Safari/537.36 Edg/103.0.1264.49”,“version”:“24.0.2.1”}
{“reqId”:“hopbzFMAtNo66ulT1exq”,“level”:3,“time”:“2023-02-22T11:00:13+00:00”,“remoteAddr”:“127.0.0.1”,“user”:“admin”,“app”:“PHP”,“method”:“DELETE”,“url”:“/nextcloud/remote.php/dav/files/admin/TEMP/%E5%8F%91%E7%83%AD2023%E7%AD%BE%E5%88%B0%E8%A1%A8.xlsx”,“message”:“Cannot declare class OCA\Files\Activity\Settings\FileChanged, because the name is already in use at /var/www/html/nextcloud/apps/files/lib/Activity/Settings/FileChanged.php#26”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Safari/537.36 Edg/103.0.1264.49”,“version”:“24.0.2.1”}
{“reqId”:“c5hcbLmQhPjznnBIFHpl”,“level”:3,“time”:“2023-02-22T11:00:13+00:00”,“remoteAddr”:“127.0.0.1”,“user”:“admin”,“app”:“PHP”,“method”:“DELETE”,“url”:“/nextcloud/remote.php/dav/files/admin/TEMP/%E5%B7%A5%E4%BD%9C%E7%B0%BF1.xlsx”,“message”:“Cannot declare class OCA\Files\Activity\Settings\FileChanged, because the name is already in use at /var/www/html/nextcloud/apps/files/lib/Activity/Settings/FileChanged.php#26”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Safari/537.36 Edg/103.0.1264.49”,“version”:“24.0.2.1”}
{“reqId”:“qAnGXj5HlXAXVzTFQYVT”,“level”:3,“time”:“2023-02-22T11:00:13+00:00”,“remoteAddr”:“127.0.0.1”,“user”:“admin”,“app”:“PHP”,“method”:“DELETE”,“url”:“/nextcloud/remote.php/dav/files/admin/TEMP/%E6%A3%80%E9%AA%8C%E7%A7%91%E5%8D%97%E9%83%A8%E5%80%BC%E7%8F%AD%E7%AD%BE%E5%88%B0%E8%A1%A8%EF%BC%88202212%EF%BC%89.xlsx”,“message”:“Cannot declare class OCA\Files\Activity\Settings\FileChanged, because the name is already in use at /var/www/html/nextcloud/apps/files/lib/Activity/Settings/FileChanged.php#26”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Safari/537.36 Edg/103.0.1264.49”,“version”:“24.0.2.1”}

Sorry i can not really help. Hopefully there is only a problem with some files between linux filesystem and Nextcloud.

Maybe you can delete (rm) the files manually in terminal e.g. in /var/www/html/nextcloud/data/admin/TEMP (and other directorys) and then run

sudo -u www-data php /var/www/html/nextcloud/occ files:scan --all

documentation files:scan

If it not works it maybe a bug. Please post more information.