Use rclone cleanup OneDrive:/path
better new since rclone v1.52.
And this project is deprecated and archived since now
MOD of PowerShell Script from Delete all previous file versions in a library by Rhilip.
!!! Notice All Version History will remove without confirm and no Recovery bin used !!!
#Enter the data
$Url = "https://TODO-my.sharepoint.com/personal/TODO_SITE_NAME"
$username = "TODO_USERNAME"
$AdminPassword = ConvertTo-SecureString -String "TODO_PASSWORD" -AsPlainText -Force
#$AdminPassword=Read-Host -Prompt "Enter password" -AsSecureString
#$ListTitle = "文档"
$ListTitle="Documents"