Delete All Version history

Hi
I need to delete all version history total entries around 400000. So the database size is increasing.
I am in frappe cloud.

Any solutions to this via system console.