Synthetic locations API v2 - DELETE a location
Deletes an existing private synthetic location. Deletion cannot be undone.
Endpoint
/api/cluster/v2/synthetic/locations
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
locationId | string |
The Dynatrace entity ID of the private synthetic location to be deleted. |
path | required |
Response
Response codes
Code | Description |
---|---|
204 | Success. The location has been deleted. Response doesn't have a body. |
Response body
A successful request doesn't return any content.
Example
In this example, the request deletes the private Synthetic location from the POST request example. The response code of 204 indicates that the deletion was successful.
The API token is passed in the Authorization header.
Curl
curl -X DELETE \
https://mySampleEnv.live.dynatrace.com/api/v2/synthetic/locations/SYNTHETIC_LOCATION-493122BFA29674DC \
-H 'Authorization: Api-Token abcdefjhij1234567890'
Request URL
https://mySampleEnv.live.dynatrace.com/api/v2/synthetic/locations/SYNTHETIC_LOCATION-493122BFA29674DC
Response code
204