Service metrics API - DELETE a metric
Deletes the specified calculated service metric. Deletion cannot be undone!
To execute this request, you need an access token with Write configuration (
WriteConfig) scope. To learn how to obtain and use it, see Tokens and authentication.
The key of the calculated service metric to be deleted.
Success. The calculated service metric has been deleted. Response doesn't have a body.
In this example, the request deletes the Requests by code calculated service metric created in the POST request example.
The API token is passed in the Authorization header.
The response code of 204 indicates that the update was successful.
curl -X DELETE \ https://mySampleEnv.live.dynatrace.com/api/config/v1/calculatedMetrics/service/calc:service.requestsbycode \ -H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'