Returned result
1 will be returned if the function cleared the job logs.
–2 will be returned if the job logs could not be removed..
–3 will be returned if an unhandled error occurred.
Examples
The following examples keep the last 10 logs and remove all older logs for a job called Daily Run: