I am trying to find a way to programmatically delete shared test steps in ADO. I have tried both using the REST API and the Client SDK.
The following error happens when trying to use the API:
You cannot delete or restore test work items using this API. Use Test Management REST API to delete test artifacts.
The issue is that there seems to be no methods in the SDK or endpoints to delete steps, only cases or suites. I have also tried using the SDK with
WorkItemTrackingHttpClient.DeleteWorkItemAsync()
but that says it doesn't allow the deletion of test work items.