public function removeOldData($filePath) { if (file_exists($filePath) && filemtime($filePath) < time() - $this->maxFileAge) { @unlink($filePath); } }