Bitrix Site Manager

CStatistics::CleanUp

bool
CStatistics::CleanUp(
 string date = "",
 array &errors
)

The method CleanUp erases collected statistical data.

Parameters

Parameter Description
date Date (in the format of the current site or language) up to which the statistics is to be erased. If an empty string is passed in this parameter all the collected data will be erased.
errors If the date parameter is empty, this variable will contain all errors that may occur during the statistics clean-up.

Return Values

The method returns "true" on success, or "false" otherwise.

See Also

Example



<?
// date (in the format of the current site or language)
// up to which the statistics is to be erased
$date = "31.12.2005";

// erase
CStatistics::CleanUp($date);
?>