There are 2 repositories under sharepoint-client topic.
This sample console application uses the SharePoint .NET client-side object model (CSOM) to delete old versions of all files from multiple folders from your SharePoint or OneDrive for Business subscription.
Some powershell script using sharepoint client sdk