Purge old logs

Is it possible to change the time when the script will solved?

Is the following statement correct?

If i have a taskjob which open the archive.php at 14.00 Clock i can purge old logs at 14.15 because alle the old logs are archived?