Can we delete all the history based on the timestamp?

Let’s say we would like to remove all the history older than two years, is there a convenient way to do it? I saw a discussion on using /bin/deleteversions/ and feel like that’s very limited.