Leftover files after manual update again

Hello!
Basically, same story happening again… After each manual upgrade.
I’ve just updated manually to version 3.11.0 and under “Diagnostic” —> “System Check” I see this message:

Directories were found in your Matomo but we didn’t expect them.
–> Please delete these directories to prevent errors. <–

Directory to delete: libs/Zend/Cache

Files were found in your Matomo but we didn’t expect them.
–> Please delete these files to prevent errors. <–
File to delete: libs/Zend/Validate/EmailAddress.php

Should I delete the directory “Cache” and everything in it (incl. sub-directories “Backend” and “Frontend” and all inside of them?

As per second issue with a file… If I got it right, then I should ONLY delete this PHP file:
EmailAddress.php and that’s it?

Just wanted to double-check not to break anything… Thanks!

Hi,

Yes you are right.
Both features are not used in Matomo anymore and can be deleted therefore.

You can’t do really much wrong. Even if you delete the wrong thing worst case Matomo will break until you restore those files from the latest Matomo zip. (unless the config.ini.php which holds important information)

Thank you for your reply!