create a batch to delete the logs automatically