Can the tmp folder be deleted without harm?


My TMP folder takes a lot of space.
What is the function of the Piwik tmp folder (…/piwik/tmp/) and what is the fuction of the cache folder (…/piwik/tmp/cache).
Do we need the files in this folder or is it just a dump ?
Under which circumstances these files can be deleted?
What information is lost after deleteing these files?
When are the files in these folders created ?
When are the files in these folders needed?

Many thanks in advance for answering.
J.P.Peters Netherlands


Does Piwik automatically empty that folder on a preset time frame?


Allow me to add another question:

Can we set up a cron job to empty this directory:


(Matthieu Aubry) #4

This folder should not get enormous. Do you know which folders take the most size?

You can safely delete the tmp/* folder content.


The two largest folders are:

size: 19.95 Mb

size: 2.0 Mb



Following up to ask if it is OK to set up a cron job to empty this directory.

(Matthieu Aubry) #7

It’s OK to delete tmp/*