Removing old files that are not needed

I have a very large number of individual files that need to be removed and I cannot use the RM commands due to our hosting companies policies. Is there a way to remove these files automatically? If I remove the entire piwik directory on the server and install the latest upgrade will that work? I have removed all unneeded directories and accidentally removed a needed one (/piwik/vendor/tecnickcom), and then installed the lastst update but it did not replace this missing directory. What would any suggestions be?

Hi,

Yes, you can always delete all Matomo files (apart from config/config.ini.php) and replace them with the latest ones from the installation zip
What might get lost:

  • custom logos
  • geoip databases
  • other custom files in misc/
  • plugins from the marketplace

Thank you for your response. By installation.zip which file to you mean? Which directory would the custom logos, geoip databases, misc and marketplace plugins be be in? I could back them up. Why didn’t the above mentioned directory get recreated when I installed the update (latest_matomo.zip) I believe?
Thanks.

Hi,

logos and geoip databases are in misc/, marketplace plugins each have a directory in plugins/

I am referring to the https://builds.matomo.org/matomo-latest.zip file, it should already contain all directories (pay attention to unzip it in the correct parent dir)

thanks for the help…

Started removing old files manually then got this as refreshing files to remove list.

This page isn’t working right now

www.blss.com can’t currently handle this request.

HTTP ERROR 500

Was removing files on the list to remove. Installed latest upgrade still not working.
Help.

Hi,

Without more information it is hard to guess.

Whenever you get a server error, check the webserver error log to see what exactly goes wrong.

Is the current directory Public_html/piwik or public_html/matomo?

This is something only the host of your webserver can answer. But if it is a Linux server, then paths are case sensitive (on Windows they are in-sensitive)

Am I supposed to be using files under the piwik directory or the matomo directory?

The https://builds.matomo.org/matomo-latest.zip only contains a matomo directory

Does that replace the piwik directory I have been using?

If that directory is called piwik for you now, then leave it as that (as changing it would change the URL) and just put the content of the matomo directory there

ok is there a current latest_piwik.zip update available?

Yes, there is a piwik-latest.zip on https://builds.matomo.org/ but it contains the same files as the Matomo one with just the directory name renamed.

I see what is going on now I am still using the piwik directory for all my files and updates. Is this still OK or should I transition to the matomo directory for future compatibility?

Hi,

The name of the directory is just something on your end. You could e.g. also rename the directory to something else or point a subdomain to this directory.

OK I understand but my question is will piwik-3.14.1-b1.zip or what ever the new build is still be available long term?

Hi,
3.14.0 is currently the latest stable version, but you can find all versions ever released on builds.matomo.org

This has been resolved the confusion is that I still have piwik as my main directory instead of Matomo so the new download was not replacing files under piwik. I downloaded the latest piwik update and it worked fine. Thank you.