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 remove all logs older than 5 days for a job called Daily Run: