You can use PowerShell to make REST API calls. Start by creating a file called sqldep-delete-batch.ps 

Here is the content

[Net.ServicePointManager]::SecurityProtocol = "ssl3,tls12, tls11, tls"

Invoke-RestMethod -Method Delete -ContentType application/json -Headers @{Authorization="Token 12345678-12345678-1234-1234-1234567890ab" } -Uri https://app.sqldep.com/api/batch/?delete_to=2017-09-01T00:00:00 -Body "{}"

You need to replace example API key (12345678-...) by your real API key from here -- https://app.sqldep.com/queryflow/upload/api/

Call your script

Just type sqldep-delete-batch.ps  and hit Enter.

Details about our REST API

See our documentation -- https://sqldep.docs.apiary.io/#

Did this answer your question?