Delete a service-level objective in Dynatrace with the SLO API by ID, using optimistic locking to guard against concurrent changes.
| DELETE | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/slo/v1/slos/{id} |
You provide the service-level objective ID in the path and the optimistic-locking-version query parameter to delete safely. The response has no content.
To execute this request, you need a platform token or OAuth access token with slo:slos:write scope. To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| id | string | service-level objective ID | path | Required |
| optimistic-locking-version | string | The version of the object for optimistic locking. You can use it to detect simultaneous modifications by different users. It's generated upon retrieval (GET requests). If set on update (PUT request) or deletion, the update/deletion will be allowed only if there wasn't any change between the retrieval and the update. | query | Required |
| Code | Description |
|---|---|
| 204 | No Content |
| 400 | - |
| 401 | - |
| 403 | - |
| 404 | - |
| 429 | - |
| 5XX | - |