• Home
  • Dynatrace API
  • Environment
  • Synthetic v2
  • Locations
  • DELETE a location

Synthetic locations API v2 - DELETE a location

Deletes an existing private synthetic location. Deletion cannot be undone.

DELETEManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/api/v2/synthetic/locations/{locationId}
SaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/synthetic/locations/{locationId}
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/v2/synthetic/locations/{locationId}

Authentication

To execute this request, you need an access token with syntheticLocations.write scope.

To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
locationIdstring

The Dynatrace entity ID of the private synthetic location to be deleted.

pathrequired

Response

Response codes

CodeDescription
204

Success. The location has been deleted. Response doesn't have a body.

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

bash
curl -X DELETE \ https://mySampleEnv.live.dynatrace.com/api/v2/synthetic/locations/SYNTHETIC_LOCATION-493122BFA29674DC \ -H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'

Request URL

plaintext
https://mySampleEnv.live.dynatrace.com/api/v2/synthetic/locations/SYNTHETIC_LOCATION-493122BFA29674DC

Response code

204

Related topics
  • Synthetic Monitoring

    Learn about Synthetic Monitoring and how to create a single-URL browser monitor, a browser clickpath, or an HTTP monitor.