public function reset()
{
$adm = $this->app->user_manager->is_admin();
if (defined('MW_API_CALL') and $adm == false) {
return array('error' => 'Error: not logged in as admin.' . __FILE__ . __LINE__);
}
$table = $this->table;
DB::table($table)->truncate();
$cg = guess_cache_group($table);
$this->app->cache_manager->delete($cg);
return array('success' => 'System log is cleaned up.');
}