Can the tmp folder be deleted without harm?


#1

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


#2

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


#3

Allow me to add another question:

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


/path-to/piwik-installation/tmp/templates_c


(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.


#5

The two largest folders are:

piwik/tmp/latest
size: 19.95 Mb

piwik/tmp/templates_c
size: 2.0 Mb

Regards,
J.P.Peters


#6

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/*