The documentation definitely lets a lot to be desired, but doing what you want to do is definitly possible (after all the GDPR tool UI is doing it). You can take a look at the HTTP requests that are sent to the API there for inspiration.
I can find all Austrian visiters from this API: https://dev.matomo/index.php?idSite=all&period=range&date=1998-01-01%2Ctoday&module=API&method=Live.getLastVisitsDetails&segment=countryName%3D%3DAustria&filter_limit=401&doNotFetchActions=1&format=JSON2
This will give me a list like this:
[
{
"idSite": 1,
"idVisit": 4972,
...
]
},
...
]
And if you now want to delete this one visit 4972, you can POST to https://dev.matomo/index.php?module=API&method=PrivacyManager.deleteDataSubjects&filter_limit=-1&format=JSON2&idSite=1&period=month&date=today
with visits[0][idsite]=1&visits[0][idvisit]=4973 as form data.
So you can also delete multiple visits with one request just like the UI tool does.