Is there an example of using the Azure Devops REST API DELETE to delete a single commit? I see this in the documentation:
https://docs.microsoft.com/en-us/rest/api/azure/devops/wiki/pages/delete%20page?view=azure-devops-rest-6.0
DELETE
https://dev.azure.com/{organization}/{project}/_apis/wiki/wikis/{wikiIdentifier}/pages?path={path}&comment={comment}&versionDescriptor.version={versionDescriptor.version}&versionDescriptor.versionOptions={versionDescriptor.versionOptions}&versionDescriptor.versionType={versionDescriptor.versionType}&api-version=6.0
However, when I try to execute this against devops using postman I get this error:
{
"$id": "1",
"innerException": null,
"message": "The version '{0}' either is invalid or does not exist.\r\nParameter name: versionDescriptor",
"typeName": "Microsoft.TeamFoundation.SourceControl.WebServer.InvalidArgumentValueException, Microsoft.TeamFoundation.SourceControl.WebServer",
"typeKey": "InvalidArgumentValueException",
"errorCode": 0,
"eventId": 0
}
I'm using the ID displayed in local history as the version (IE: "2e45375d"), and am using "commit" as version type, and am using "previousChange" as version option.
I am able to use the REST API to delete the entire page, however I would like to be able to delete specific commits.