do_action( 'cartflows_log_clear' )
$this->open( $handle, ‘w’ ) == Open the file for writing only. Place the file pointer at the beginning of the file, and truncate the file to zero length.
Source
File: classes/logger/class-cartflows-log-handler-file.php