Returned result
1 will be returned if the function cleared the version records.
–2 will be returned if the version records could not be removed..
–3 will be returned if an unhandled error occurred.
Examples
The following examples all keep versions made in the last 90 days and the last 5 versions made of each object. All other versions are removed.